This is an archive of the discontinued LLVM Phabricator instance.

[mlir][NFC] Refactor linalg substituteMin and AffineMinSCF canonizalizations
ClosedPublic

Authored by ThomasRaoux on Apr 12 2021, 9:50 AM.

Details

Summary

Break up the dependency between SCF ops and substituteMin helper and make a more generic version of AffineMinSCFCanonicalization.
This reduce dependencies between linalg and SCF and will allow the logic to be used with other kind of ops. (Like ID ops).

Diff Detail

Event Timeline

ThomasRaoux created this revision.Apr 12 2021, 9:50 AM
ThomasRaoux requested review of this revision.Apr 12 2021, 9:50 AM

This is an improved version of https://reviews.llvm.org/D94998 (I'll abandon this one) that is more powerful as it allows re-using substitueMin in more patterns. For instance the case I'm interested in is to be able to use it to remove single iteration loops depending on ID ops.

missed clang format

This revision is now accepted and ready to land.Apr 15 2021, 11:26 AM