[llvm-commits] [llvm] r127323 - /llvm/trunk/lib/Analysis/InstructionSimplify.cpp

Nick Lewycky nicholas at mxc.ca
Wed Mar 9 00:20:06 PST 2011


Author: nicholas
Date: Wed Mar  9 02:20:06 2011
New Revision: 127323

URL: http://llvm.org/viewvc/llvm-project?rev=127323&view=rev
Log:
Fix two cases I forgot to update when doing a mental "getSwappedPredicate".
Thanks Duncan Sands!

Modified:
    llvm/trunk/lib/Analysis/InstructionSimplify.cpp

Modified: llvm/trunk/lib/Analysis/InstructionSimplify.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/InstructionSimplify.cpp?rev=127323&r1=127322&r2=127323&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/InstructionSimplify.cpp (original)
+++ llvm/trunk/lib/Analysis/InstructionSimplify.cpp Wed Mar  9 02:20:06 2011
@@ -1709,7 +1709,7 @@
       if (!KnownNonNegative)
         break;
       // fall-through
-    case ICmpInst::ICMP_EQ:
+    case ICmpInst::ICMP_NE:
     case ICmpInst::ICMP_UGT:
     case ICmpInst::ICMP_UGE:
       return ConstantInt::getTrue(RHS->getContext());
@@ -1719,7 +1719,7 @@
       if (!KnownNonNegative)
         break;
       // fall-through
-    case ICmpInst::ICMP_NE:
+    case ICmpInst::ICMP_EQ:
     case ICmpInst::ICMP_ULT:
     case ICmpInst::ICMP_ULE:
       return ConstantInt::getFalse(RHS->getContext());





More information about the llvm-commits mailing list