[llvm-commits] [llvm] r127220 - /llvm/trunk/lib/Transforms/InstCombine/InstCombineCompares.cpp

Nick Lewycky nicholas at mxc.ca
Mon Mar 7 22:29:47 PST 2011


Author: nicholas
Date: Tue Mar  8 00:29:47 2011
New Revision: 127220

URL: http://llvm.org/viewvc/llvm-project?rev=127220&view=rev
Log:
Reorder comments to put them the right way around.

Modified:
    llvm/trunk/lib/Transforms/InstCombine/InstCombineCompares.cpp

Modified: llvm/trunk/lib/Transforms/InstCombine/InstCombineCompares.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/InstCombine/InstCombineCompares.cpp?rev=127220&r1=127219&r2=127220&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/InstCombine/InstCombineCompares.cpp (original)
+++ llvm/trunk/lib/Transforms/InstCombine/InstCombineCompares.cpp Tue Mar  8 00:29:47 2011
@@ -2315,11 +2315,11 @@
       return new ICmpInst(Pred, D, B);
 
     BinaryOperator *SRem = NULL;
-    // icmp Y, (srem X, Y)
+    // icmp (srem X, Y), Y
     if (BO0 && BO0->getOpcode() == Instruction::SRem &&
         Op1 == BO0->getOperand(1))
       SRem = BO0;
-    // icmp (srem X, Y), Y
+    // icmp Y, (srem X, Y)
     else if (BO1 && BO1->getOpcode() == Instruction::SRem &&
              Op0 == BO1->getOperand(1))
       SRem = BO1;





More information about the llvm-commits mailing list