aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2012-08-30 15:07:40 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2012-08-30 15:07:40 +0000
commitc81fe9cab545a93a61c059b1c2813f622aef43ae (patch)
treed98b8b3615701acac48b321096433a4ca8f93c7d
parente941df5e354ff7d327bab8e59af687ec90fdd149 (diff)
InstCombine: Fix comment to reflect the code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162911 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Transforms/InstCombine/InstCombineMulDivRem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp b/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
index 003dc55a03..2a7182fc1d 100644
--- a/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
+++ b/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
@@ -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;