This is an archive of the discontinued LLVM Phabricator instance.

[mlir][linalg] Fix dim(iter_arg) canonicalization
ClosedPublic

Authored by springerm on Sep 5 2021, 6:27 PM.

Details

Summary

Run a small analysis to see if the runtime type of the iter_arg is changing. Fold only if the runtime type stays the same. (Same as DimOfIterArgFolder in SCF.)

Depends On D108270

Diff Detail

Event Timeline

springerm created this revision.Sep 5 2021, 6:27 PM
springerm requested review of this revision.Sep 5 2021, 6:27 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 5 2021, 6:27 PM
nicolasvasilache accepted this revision.Sep 8 2021, 4:19 AM

can you add a negative test?

This revision is now accepted and ready to land.Sep 8 2021, 4:19 AM
This revision was landed with ongoing or failed builds.Sep 8 2021, 8:18 PM
This revision was automatically updated to reflect the committed changes.