diff options
-rwxr-xr-x | test/Feature/TestOptimizer.sh | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/test/Feature/TestOptimizer.sh b/test/Feature/TestOptimizer.sh index d7442a7af5..f51be2e4b9 100755 --- a/test/Feature/TestOptimizer.sh +++ b/test/Feature/TestOptimizer.sh @@ -9,5 +9,13 @@ export LD_LIBRARY_PATH ../tools/opt/opt -q -constprop -dce < $1.bc.1 > $1.bc.2 || exit 2 diff $1.bc.[12] || exit 3 -rm $1.bc.[12] + +# Try out SCCP +../tools/as/as < $1 | ../tools/opt/opt -q -inline -dce -sccp -dce | ../tools/dis/dis | ../tools/as/as > $1.bc.3 || exit 1 + +# Should not be able to optimize further! +#../tools/opt/opt -q -sccp -dce < $1.bc.3 > $1.bc.4 || exit 2 + +#diff $1.bc.[34] || exit 3 +rm $1.bc.[123] |