This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Canonicalize single-iteration ParallelOp
ClosedPublic

Authored by Hardcode84 on Apr 10 2021, 9:51 AM.

Diff Detail

Event Timeline

Hardcode84 created this revision.Apr 10 2021, 9:51 AM
Hardcode84 requested review of this revision.Apr 10 2021, 9:51 AM
mehdi_amini accepted this revision.Apr 10 2021, 10:28 AM
mehdi_amini added inline comments.
mlir/lib/Dialect/SCF/SCF.cpp
1252

Nit, you could reduce the indentation with:

auto reduce = dyn_cast<ReduceOp>(bodyOp);
if (!reduce) {
  rewriter.clone(bodyOp, mapping);
  continue;
}
...
This revision is now accepted and ready to land.Apr 10 2021, 10:28 AM

Apply review comment

Hardcode84 marked an inline comment as done.Apr 11 2021, 4:51 AM
This revision was automatically updated to reflect the committed changes.