summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineInstr.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-07-11 04:09:09 +0000
committerChris Lattner <sabre@nondot.org>2008-07-11 04:09:09 +0000
commit4fa8bb343016b2f5913128c473a614bc5fd289f0 (patch)
tree374ffe40656a5e20e653d72c7e21441bc53e4f6e /llvm/lib/CodeGen/MachineInstr.cpp
parent1be09d9e2124d5b0d015f23495c1bd1bb0437b28 (diff)
downloadbcm5719-llvm-4fa8bb343016b2f5913128c473a614bc5fd289f0.tar.gz
bcm5719-llvm-4fa8bb343016b2f5913128c473a614bc5fd289f0.zip
Fix a bogus optimization: folding (slt (zext i1 A to i32), 1) -> (slt i1 A, true)
This cause a regression in InstCombine/JavaCompare, which was doing the right thing on accident. To handle the missed case, generalize the comparisons based on masked bits a little bit to handle comparisons against the max value. For example, we can now xform (slt i32 (and X, 4), 4) -> (setne i32 (and X, 4), 4) llvm-svn: 53443
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud