mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Make sure that we're dealing with a binary SCEVExpr when simplifying.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157704 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6c823822cd
commit
127563b216
@ -5654,7 +5654,8 @@ bool ScalarEvolution::SimplifyICmpOperands(ICmpInst::Predicate &Pred,
|
||||
if (!RA)
|
||||
if (const SCEVAddExpr *AE = dyn_cast<SCEVAddExpr>(LHS))
|
||||
if (const SCEVMulExpr *ME = dyn_cast<SCEVMulExpr>(AE->getOperand(0)))
|
||||
if (ME->getOperand(0)->isAllOnesValue()) {
|
||||
if (AE->getNumOperands() == 2 && ME->getNumOperands() == 2 &&
|
||||
ME->getOperand(0)->isAllOnesValue()) {
|
||||
RHS = AE->getOperand(1);
|
||||
LHS = ME->getOperand(1);
|
||||
Changed = true;
|
||||
|
Loading…
Reference in New Issue
Block a user