Skip to content

Commit e341665

Browse files
committed
[LSR] Strip dead code (NFC)
1 parent 7f223d1 commit e341665

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6479,10 +6479,6 @@ struct SCEVDbgValueBuilder {
64796479
/// Chain (non-affine) SCEVs are not supported.
64806480
bool SCEVToValueExpr(const llvm::SCEVAddRecExpr &SAR, ScalarEvolution &SE) {
64816481
assert(SAR.isAffine() && "Expected affine SCEV");
6482-
// TODO: Is this check needed?
6483-
if (isa<SCEVAddRecExpr>(SAR.getStart()))
6484-
return false;
6485-
64866482
const SCEV *Start = SAR.getStart();
64876483
const SCEV *Stride = SAR.getStepRecurrence(SE);
64886484

@@ -6550,11 +6546,6 @@ struct SCEVDbgValueBuilder {
65506546
bool SCEVToIterCountExpr(const llvm::SCEVAddRecExpr &SAR,
65516547
ScalarEvolution &SE) {
65526548
assert(SAR.isAffine() && "Expected affine SCEV");
6553-
if (isa<SCEVAddRecExpr>(SAR.getStart())) {
6554-
LLVM_DEBUG(dbgs() << "scev-salvage: IV SCEV. Unsupported nested AddRec: "
6555-
<< SAR << '\n');
6556-
return false;
6557-
}
65586549
const SCEV *Start = SAR.getStart();
65596550
const SCEV *Stride = SAR.getStepRecurrence(SE);
65606551

0 commit comments

Comments
 (0)