[llvm-commits] [llvm] r162911 - /llvm/trunk/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
Benjamin Kramer
benny.kra at googlemail.com
Thu Aug 30 08:07:40 PDT 2012
Author: d0k
Date: Thu Aug 30 10:07:40 2012
New Revision: 162911
URL: http://llvm.org/viewvc/llvm-project?rev=162911&view=rev
Log:
InstCombine: Fix comment to reflect the code.
Modified:
llvm/trunk/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
Modified: llvm/trunk/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp?rev=162911&r1=162910&r2=162911&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp (original)
+++ llvm/trunk/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp Thu Aug 30 10:07:40 2012
@@ -462,7 +462,7 @@
}
}
- // 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;
More information about the llvm-commits
mailing list