diff options
author | Chris Lattner <sabre@nondot.org> | 2001-06-27 23:37:22 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-06-27 23:37:22 +0000 |
commit | b351ab8c1bd3cb2a89b0bcba618b7051ba669c2e (patch) | |
tree | d522f4f02e3dc3764049feef9dcbb7e6302292d2 /test/Feature | |
parent | 8a36b31e1afc958446c316218da5c54a1a61409e (diff) | |
download | external_llvm-b351ab8c1bd3cb2a89b0bcba618b7051ba669c2e.zip external_llvm-b351ab8c1bd3cb2a89b0bcba618b7051ba669c2e.tar.gz external_llvm-b351ab8c1bd3cb2a89b0bcba618b7051ba669c2e.tar.bz2 |
Put in test of SCCP. Watch out though, because we need to sort the
constant pool for the final check to work. :(
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Feature')
-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 d7442a7..f51be2e 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] |