Skip to content

Commit 502cef4

Browse files
committed
!fixup remove unneeded code
1 parent 4d8e40f commit 502cef4

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

llvm/lib/Analysis/ScalarEvolution.cpp

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)