summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-05-11 16:58:45 +0000
committerChris Lattner <sabre@nondot.org>2007-05-11 16:58:45 +0000
commit600db3eb9644769aedb96280299ca2091da43b3d (patch)
treeec9dc2da15a601b2336eb1f1bee5709aba0253b6 /llvm/lib
parent67286b12661ad19bf861052f69e6ac724c958cdf (diff)
downloadbcm5719-llvm-600db3eb9644769aedb96280299ca2091da43b3d.tar.gz
bcm5719-llvm-600db3eb9644769aedb96280299ca2091da43b3d.zip
fix regressions from my previous checking, including
Transforms/InstCombine/2006-12-08-ICmp-Combining.ll llvm-svn: 36989
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/Scalar/InstructionCombining.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
index 51c860776c8..4c120799d5d 100644
--- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
@@ -3926,9 +3926,9 @@ Instruction *InstCombiner::visitOr(BinaryOperator &I) {
ICmpInst *LHS = cast<ICmpInst>(Op0);
bool NeedsSwap;
if (ICmpInst::isSignedPredicate(LHSCC))
- NeedsSwap = LHSCst->getValue().sgt(LHSCst->getValue());
+ NeedsSwap = LHSCst->getValue().sgt(RHSCst->getValue());
else
- NeedsSwap = LHSCst->getValue().ugt(LHSCst->getValue());
+ NeedsSwap = LHSCst->getValue().ugt(RHSCst->getValue());
if (NeedsSwap) {
std::swap(LHS, RHS);
OpenPOWER on IntegriCloud