diff options
author | Chris Lattner <sabre@nondot.org> | 2007-11-23 22:35:18 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-11-23 22:35:18 +0000 |
commit | 148083a529c44e8146ffc9863fb45ed7f6ef7e07 (patch) | |
tree | 40e95b12f56e01b38f8a9a0b446e34f07b74b65b /lib/Transforms | |
parent | ecc0274a54658a4ee76d783b285a0690ad760928 (diff) | |
download | external_llvm-148083a529c44e8146ffc9863fb45ed7f6ef7e07.zip external_llvm-148083a529c44e8146ffc9863fb45ed7f6ef7e07.tar.gz external_llvm-148083a529c44e8146ffc9863fb45ed7f6ef7e07.tar.bz2 |
add a comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44293 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r-- | lib/Transforms/Scalar/InstructionCombining.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index c8df412..5537631 100644 --- a/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/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)); } |