We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8350c93 commit 731a481Copy full SHA for 731a481
mlir/lib/Dialect/SCF/IR/SCF.cpp
@@ -1767,13 +1767,12 @@ struct ForallOpSingleOrZeroIterationDimsFolder
1767
}
1768
};
1769
1770
+/// Replace all induction vars with a single trip count with their lower bound.
1771
struct ForallOpReplaceConstantInductionVar : public OpRewritePattern<ForallOp> {
1772
using OpRewritePattern<ForallOp>::OpRewritePattern;
1773
1774
LogicalResult matchAndRewrite(ForallOp op,
1775
PatternRewriter &rewriter) const override {
- // Replace all induction vars with a single trip count with their lower
1776
- // bound.
1777
Location loc = op.getLoc();
1778
bool changed = false;
1779
for (auto [lb, ub, step, iv] :
0 commit comments