1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 02:33:06 +01:00

Put in test of SCCP. Watch out though, because we need to sort the

constant pool for the final check to work.  :(

llvm-svn: 93
This commit is contained in:
Chris Lattner 2001-06-27 23:37:22 +00:00
parent 747dcc99bc
commit d4d1cb558c

View File

@ -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]