Skip to content

Commit 4e85193

Browse files
committed
Simplify scf.if distribution
1 parent c794fd2 commit 4e85193

File tree

3 files changed

+244
-62
lines changed

3 files changed

+244
-62
lines changed

lib/polygeist/Passes/CanonicalizeFor.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1498,7 +1498,8 @@ struct ReturnSq : public OpRewritePattern<ReturnOp> {
14981498
void CanonicalizeFor::runOnFunction() {
14991499
mlir::RewritePatternSet rpl(getFunction().getContext());
15001500
rpl.add<PropagateInLoopBody, DetectTrivialIndVarInArgs,
1501-
ForOpInductionReplacement, RemoveUnusedArgs, MoveWhileToFor,
1501+
ForOpInductionReplacement,
1502+
RemoveUnusedArgs, MoveWhileToFor,
15021503

15031504
MoveWhileDown, MoveWhileDown2
15041505

0 commit comments

Comments
 (0)