File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1775,7 +1775,7 @@ struct ForallOpReplaceConstantInductionVar : public OpRewritePattern<ForallOp> {
1775
1775
// Replace all induction vars with a single trip count with their lower
1776
1776
// bound.
1777
1777
Location loc = op.getLoc ();
1778
- bool replacedIv = false ;
1778
+ bool changed = false ;
1779
1779
for (auto [lb, ub, step, iv] :
1780
1780
llvm::zip (op.getMixedLowerBound (), op.getMixedUpperBound (),
1781
1781
op.getMixedStep (), op.getInductionVars ())) {
@@ -1787,9 +1787,9 @@ struct ForallOpReplaceConstantInductionVar : public OpRewritePattern<ForallOp> {
1787
1787
}
1788
1788
rewriter.replaceAllUsesWith (
1789
1789
iv, getValueOrCreateConstantIndexOp (rewriter, loc, lb));
1790
- return success () ;
1790
+ changed = true ;
1791
1791
}
1792
- return failure ( );
1792
+ return success (changed );
1793
1793
}
1794
1794
};
1795
1795
You can’t perform that action at this time.
0 commit comments