This is an archive of the discontinued LLVM Phabricator instance.

[mlir][linalg] Relax convolution vectorization to support mixed types
ClosedPublic

Authored by ThomasRaoux on Jun 15 2022, 5:54 PM.

Details

Summary

Support the case where convolution does float extension of the inputs.

Diff Detail

Event Timeline

ThomasRaoux created this revision.Jun 15 2022, 5:54 PM
Herald added a project: Restricted Project. · View Herald Transcript
ThomasRaoux requested review of this revision.Jun 15 2022, 5:54 PM
nicolasvasilache accepted this revision.Jun 16 2022, 2:47 AM
nicolasvasilache added inline comments.
mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp
1377–1389

whose operands ?

1393

also ExtSI/ExtUI Ops ?

This revision is now accepted and ready to land.Jun 16 2022, 2:47 AM
ThomasRaoux added inline comments.Jun 16 2022, 7:59 AM
mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp
1393

yes I was thinking about that although I'm unclear if contraction with mixed type works for integer type as I don't see a way to distinguish the extSI and extUI when the cast is merged in the contraction op?

clarify comment

mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp
1377–1389

I rephrased the comment to make it more explicit that this is about mul op operands

This revision was landed with ongoing or failed builds.Jun 16 2022, 9:36 AM
This revision was automatically updated to reflect the committed changes.