mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-24 07:35:04 +00:00
remove a now-unneccesary cast.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125464 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5380d28070
commit
e5116f840e
@ -1003,7 +1003,7 @@ Instruction *InstCombiner::FoldICmpShrCst(ICmpInst &ICI, BinaryOperator *Shr,
|
||||
// Otherwise, check to see if the bits shifted out are known to be zero.
|
||||
// If so, we can compare against the unshifted value:
|
||||
// (X & 4) >> 1 == 2 --> (X & 4) == 4.
|
||||
if (Shr->hasOneUse() && cast<BinaryOperator>(Shr)->isExact())
|
||||
if (Shr->hasOneUse() && Shr->isExact())
|
||||
return new ICmpInst(ICI.getPredicate(), Shr->getOperand(0), ShiftedCmpRHS);
|
||||
|
||||
if (Shr->hasOneUse()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user