InstCombine: Fix comment to reflect the code.
authorBenjamin Kramer <benny.kra@googlemail.com>
Thu, 30 Aug 2012 15:07:40 +0000 (15:07 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Thu, 30 Aug 2012 15:07:40 +0000 (15:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162911 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/InstCombine/InstCombineMulDivRem.cpp

index 003dc55a03f8b4f12dab4c9fd6aa82eaff8f9ed4..2a7182fc1d459fe71412727d652008323f4f3e19 100644 (file)
@@ -462,7 +462,7 @@ Instruction *InstCombiner::visitUDiv(BinaryOperator &I) {
     }
   }
 
-  // Udiv ((Lshl x, C1) , C2) ->  x / (C2 * 1<<C1);
+  // (x lshr C1) udiv C2 --> x udiv (C2 << C1)
   if (ConstantInt *C2 = dyn_cast<ConstantInt>(Op1)) {
     Value *X;
     ConstantInt *C1;