summaryrefslogtreecommitdiff
path: root/lib/Transforms
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2010-01-17 06:49:03 +0000
committerOwen Anderson <resistor@mac.com>2010-01-17 06:49:03 +0000
commit5b39620e2da1451c5db50559085ae4b86a152936 (patch)
treee498f3a2d2d131efd4f12858253402910af9c48c /lib/Transforms
parent3a4a832223e5649d97587e1be1e2d83f94a4baaa (diff)
downloadllvm-5b39620e2da1451c5db50559085ae4b86a152936.tar.gz
llvm-5b39620e2da1451c5db50559085ae4b86a152936.tar.bz2
llvm-5b39620e2da1451c5db50559085ae4b86a152936.tar.xz
Fix comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93679 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-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 6afc0cdf53..2e26a75b2a 100644
--- a/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
+++ b/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
@@ -407,7 +407,7 @@ Instruction *InstCombiner::visitUDiv(BinaryOperator &I) {
return Common;
if (ConstantInt *C = dyn_cast<ConstantInt>(Op1)) {
- // X udiv C^2 -> X >> C
+ // X udiv 2^C -> X >> C
// Check to see if this is an unsigned division with an exact power of 2,
// if so, convert to a right shift.
if (C->getValue().isPowerOf2()) // 0 not included in isPowerOf2