File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed
llvm/lib/Transforms/Scalar Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -6468,10 +6468,6 @@ struct SCEVDbgValueBuilder {
6468
6468
// / Chain (non-affine) SCEVs are not supported.
6469
6469
bool SCEVToValueExpr (const llvm::SCEVAddRecExpr &SAR, ScalarEvolution &SE) {
6470
6470
assert (SAR.isAffine () && " Expected affine SCEV" );
6471
- // TODO: Is this check needed?
6472
- if (isa<SCEVAddRecExpr>(SAR.getStart ()))
6473
- return false ;
6474
-
6475
6471
const SCEV *Start = SAR.getStart ();
6476
6472
const SCEV *Stride = SAR.getStepRecurrence (SE);
6477
6473
@@ -6539,11 +6535,6 @@ struct SCEVDbgValueBuilder {
6539
6535
bool SCEVToIterCountExpr (const llvm::SCEVAddRecExpr &SAR,
6540
6536
ScalarEvolution &SE) {
6541
6537
assert (SAR.isAffine () && " Expected affine SCEV" );
6542
- if (isa<SCEVAddRecExpr>(SAR.getStart ())) {
6543
- LLVM_DEBUG (dbgs () << " scev-salvage: IV SCEV. Unsupported nested AddRec: "
6544
- << SAR << ' \n ' );
6545
- return false ;
6546
- }
6547
6538
const SCEV *Start = SAR.getStart ();
6548
6539
const SCEV *Stride = SAR.getStepRecurrence (SE);
6549
6540
You can’t perform that action at this time.
0 commit comments