summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-11-23 22:35:18 +0000
committerChris Lattner <sabre@nondot.org>2007-11-23 22:35:18 +0000
commit0cf083815abc00f7b206762337df58e0df8ced95 (patch)
tree4b4788f42e87da2dbf9ae6b48c41681a17078494 /llvm/lib/Transforms
parent7514abe56e1669fd39df23d17dae382e5553315c (diff)
downloadbcm5719-llvm-0cf083815abc00f7b206762337df58e0df8ced95.tar.gz
bcm5719-llvm-0cf083815abc00f7b206762337df58e0df8ced95.zip
add a comment.
llvm-svn: 44293
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Scalar/InstructionCombining.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
index c8df4128643..5537631eef9 100644
--- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
@@ -2660,7 +2660,7 @@ static Constant *GetFactor(Value *V) {
if (ConstantInt *RHS = dyn_cast<ConstantInt>(I->getOperand(1))) {
// X & 0xFFF0 is known to be a multiple of 16.
uint32_t Zeros = RHS->getValue().countTrailingZeros();
- if (Zeros != V->getType()->getPrimitiveSizeInBits())
+ if (Zeros != V->getType()->getPrimitiveSizeInBits())// don't shift by "32"
return ConstantExpr::getShl(Result,
ConstantInt::get(Result->getType(), Zeros));
}
OpenPOWER on IntegriCloud