forked from OSchip/llvm-project
parent
ed14e767e8
commit
4d8723d47f
|
@ -2408,12 +2408,11 @@ SCEVHandle ScalarEvolution::createSCEV(Value *V) {
|
||||||
|
|
||||||
APInt EffectiveMask = APInt::getLowBitsSet(BitWidth, BitWidth - LZ);
|
APInt EffectiveMask = APInt::getLowBitsSet(BitWidth, BitWidth - LZ);
|
||||||
|
|
||||||
if (LZ != 0 && !((~A & ~KnownZero) & EffectiveMask)) {
|
if (LZ != 0 && !((~A & ~KnownZero) & EffectiveMask))
|
||||||
return
|
return
|
||||||
getZeroExtendExpr(getTruncateExpr(getSCEV(U->getOperand(0)),
|
getZeroExtendExpr(getTruncateExpr(getSCEV(U->getOperand(0)),
|
||||||
IntegerType::get(BitWidth - LZ)),
|
IntegerType::get(BitWidth - LZ)),
|
||||||
U->getType());
|
U->getType());
|
||||||
}
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue