mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-30 17:33:24 +00:00
add a comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44293 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ecc0274a54
commit
148083a529
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user