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).
Details
Details
Diff Detail
Diff Detail
Unit Tests
Unit Tests
Event Timeline
Comment Actions
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.
clang-format: please reformat the code