add several canonicalizations that will simplify contraction
vectorization in the future. With those canonicalizationns we will be
able to remove the special case for contration during vectorization and
rely on those transformations to avoid materizalizing broadcast ops.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Thanks for adding this, Thomas. LGTM. Just a comment about the location of the patterns.
mlir/lib/Dialect/Vector/VectorOps.cpp | ||
---|---|---|
1013 ↗ | (On Diff #381048) | IIUC, we may not want the mul+multi_reduction->contraction to happen all the time, right? I'm not sure about the other one. I think at least the multi_reduction one shouldn't be part of the canonicalizer but be in a separate populate*. |