[llvm-commits] CVS: llvm/lib/Transforms/Scalar/InstructionCombining.cpp

Chris Lattner sabre at nondot.org
Fri May 11 09:59:05 PDT 2007



Changes in directory llvm/lib/Transforms/Scalar:

InstructionCombining.cpp updated: 1.763 -> 1.764
---
Log message:

fix regressions from my previous checking, including 
Transforms/InstCombine/2006-12-08-ICmp-Combining.ll



---
Diffs of the changes:  (+2 -2)

 InstructionCombining.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


Index: llvm/lib/Transforms/Scalar/InstructionCombining.cpp
diff -u llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.763 llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.764
--- llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.763	Fri May 11 00:55:56 2007
+++ llvm/lib/Transforms/Scalar/InstructionCombining.cpp	Fri May 11 11:58:45 2007
@@ -3926,9 +3926,9 @@
           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);






More information about the llvm-commits mailing list