[llvm-commits] [llvm] r93679 - /llvm/trunk/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
Owen Anderson
resistor at mac.com
Sat Jan 16 22:49:03 PST 2010
Author: resistor
Date: Sun Jan 17 00:49:03 2010
New Revision: 93679
URL: http://llvm.org/viewvc/llvm-project?rev=93679&view=rev
Log:
Fix comment.
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=93679&r1=93678&r2=93679&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp (original)
+++ llvm/trunk/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp Sun Jan 17 00:49:03 2010
@@ -407,7 +407,7 @@
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
More information about the llvm-commits
mailing list