xenia/private/runtest.sh
Ben Vanik dcb958de54 Adding better register tracking through locals and fixing branches.
LLVM does an amazing job of optimizing this. There are many opportunities
to make it better, too, by preventing spilling where not required or only
spilling/filling things when needed.
2013-01-25 00:32:42 -08:00

24 lines
561 B
Bash
Executable file

python xenia-build.py xethunk
python xenia-build.py build
./build/xenia/release/xenia-run \
private/$1 \
--optimize_ir_modules=true \
--optimize_ir_functions=false \
--trace_kernel_calls=true \
--trace_user_calls=false \
--trace_instructions=false \
1>build/run.txt
#2>build/run.llvm.txt \
if [ ! -s build/run.llvm.txt ]; then
rm build/run.llvm.txt
fi
if [ -e build/$1-preopt.bc ]; then
./build/llvm/release/bin/llvm-dis build/$1-preopt.bc
fi
if [ -e build/$1.bc ]; then
./build/llvm/release/bin/llvm-dis build/$1.bc
fi