mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-01 14:46:26 +00:00
inlining can change methods a second time, so don't rerun inliner when testing for
differences in optimizations llvm-svn: 12
This commit is contained in:
parent
e6c4ea9861
commit
cc45ae3d49
@ -6,7 +6,7 @@ export LD_LIBRARY_PATH
|
||||
../tools/as/as < $1 | ../tools/opt/opt -q -inline -constprop -dce | ../tools/dis/dis | ../tools/as/as > $1.bc.1 || exit 1
|
||||
|
||||
# Should not be able to optimize further!
|
||||
../tools/opt/opt -q -inline -constprop -dce < $1.bc.1 > $1.bc.2 || exit 2
|
||||
../tools/opt/opt -q -constprop -dce < $1.bc.1 > $1.bc.2 || exit 2
|
||||
|
||||
diff $1.bc.[12] || exit 3
|
||||
rm $1.bc.[12]
|
||||
|
Loading…
x
Reference in New Issue
Block a user