Fix comment.
authorOwen Anderson <resistor@mac.com>
Sun, 17 Jan 2010 06:49:03 +0000 (06:49 +0000)
committerOwen Anderson <resistor@mac.com>
Sun, 17 Jan 2010 06:49:03 +0000 (06:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93679 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/InstCombine/InstCombineMulDivRem.cpp

index 6afc0cdf5360004f0bccf7a217126f242384096e..2e26a75b2ad22c7e043ac5bf4965645f4fb187c9 100644 (file)
@@ -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