This is an archive of the discontinued LLVM Phabricator instance.

[mlir][SCF] Add single iteration scf.for promotion to the FuncOp level helper.
ClosedPublic

Authored by nicolasvasilache on Jun 5 2020, 6:56 AM.

Details

Summary

Previously only the Affine version would be folded.

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptJun 5 2020, 6:56 AM
ftynse accepted this revision.Jun 5 2020, 7:02 AM

Have you considered having a single walk on Operation * that filters inside using both types? This will spare you a walk, I don't think it's optimized per-type somehow.

This revision is now accepted and ready to land.Jun 5 2020, 7:02 AM

Commit message

This revision was automatically updated to reflect the committed changes.