File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -15763,22 +15763,6 @@ void ScalarEvolution::LoopGuards::collectFromBlock(
1576315763 DividesBy = SE.getConstant(Multiple);
1576415764 return true;
1576515765 }
15766- if (auto *Mul = dyn_cast<SCEVMulExpr>(Expr)) {
15767- if (Mul->getNumOperands() != 2)
15768- return false;
15769- auto *MulLHS = Mul->getOperand(0);
15770- auto *MulRHS = Mul->getOperand(1);
15771- if (isa<SCEVConstant>(MulLHS))
15772- std::swap(MulLHS, MulRHS);
15773- if (auto *Div = dyn_cast<SCEVUDivExpr>(MulLHS))
15774- if (Div->getOperand(1) == MulRHS) {
15775- DividesBy = MulRHS;
15776- return true;
15777- }
15778- }
15779- if (auto *MinMax = dyn_cast<SCEVMinMaxExpr>(Expr))
15780- return HasDivisibiltyInfo(MinMax->getOperand(0), DividesBy) ||
15781- HasDivisibiltyInfo(MinMax->getOperand(1), DividesBy);
1578215766 return false;
1578315767 };
1578415768
@@ -15788,9 +15772,6 @@ void ScalarEvolution::LoopGuards::collectFromBlock(
1578815772 if (Expr->getType()->isIntegerTy() &&
1578915773 SE.getURemExpr(Expr, DividesBy)->isZero())
1579015774 return true;
15791- if (auto *MinMax = dyn_cast<SCEVMinMaxExpr>(Expr))
15792- return IsKnownToDivideBy(MinMax->getOperand(0), DividesBy) &&
15793- IsKnownToDivideBy(MinMax->getOperand(1), DividesBy);
1579415775 return false;
1579515776 };
1579615777
You can’t perform that action at this time.
0 commit comments