diff options
| author | Chris Lattner <sabre@nondot.org> | 2007-05-11 16:58:45 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2007-05-11 16:58:45 +0000 |
| commit | 600db3eb9644769aedb96280299ca2091da43b3d (patch) | |
| tree | ec9dc2da15a601b2336eb1f1bee5709aba0253b6 /llvm/lib | |
| parent | 67286b12661ad19bf861052f69e6ac724c958cdf (diff) | |
| download | bcm5719-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.cpp | 4 |
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); |

