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 @@ -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
You can’t perform that action at this time.
0 commit comments