aboutsummaryrefslogtreecommitdiff
path: root/lib/Bytecode/Analyzer/Analyzer.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-06-09 05:08:07 +0000
committerChris Lattner <sabre@nondot.org>2004-06-09 05:08:07 +0000
commitf523d0681616253f6dbea8a425c545d45e1bf675 (patch)
tree865b4b744fcdb2cda6d4a507c68c1e40db9635fe /lib/Bytecode/Analyzer/Analyzer.cpp
parent16ea43b008a8ce54877075c9b1156da23f30f5e6 (diff)
Be more careful about the order we put stuff onto the worklist. This allow us to
collapse this: bool %le(int %A, int %B) { %c1 = setgt int %A, %B %tmp = select bool %c1, int 1, int 0 %c2 = setlt int %A, %B %result = select bool %c2, int -1, int %tmp %c3 = setle int %result, 0 ret bool %c3 } into: bool %le(int %A, int %B) { %c3 = setle int %A, %B ; <bool> [#uses=1] ret bool %c3 } which is handy, because the Java FE makes these sequences all over the place. This is tested as: test/Regression/Transforms/InstCombine/JavaCompare.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14086 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode/Analyzer/Analyzer.cpp')
0 files changed, 0 insertions, 0 deletions