This is an archive of the discontinued LLVM Phabricator instance.

CombineContractBroadcast should not create dims unused in LHS+RHS
ClosedPublic

Authored by Benoit on Jul 4 2022, 8:34 AM.

Diff Detail

Event Timeline

Benoit created this revision.Jul 4 2022, 8:34 AM
Herald added a project: Restricted Project. · View Herald Transcript
Benoit requested review of this revision.Jul 4 2022, 8:34 AM
mlir/lib/Dialect/Vector/Transforms/VectorTransforms.cpp
1175

Please add (i.e. the ContractionOp verifier fails).

1176

Can we factor out the common verification bits that are useful here and reuse with the verifier too?
This has a flavor similar to verifyInsertSliceOp in TensorOps.cpp and that has served us well in the past.

Benoit updated this revision to Diff 442112.Jul 4 2022, 9:04 AM

Use also in verifier, and in one place in AffineMap.cpp (that this logic was borrowed from in the first place)

Benoit marked 2 inline comments as done.Jul 4 2022, 9:04 AM
nicolasvasilache accepted this revision.Jul 4 2022, 9:34 AM
This revision is now accepted and ready to land.Jul 4 2022, 9:34 AM