This is an archive of the discontinued LLVM Phabricator instance.

[mlir][vector] Extend WarpExecutionOnLane0 pattern support to allow deduplicating identical yield values.
ClosedPublic

Authored by nicolasvasilache on Sep 9 2022, 6:06 AM.

Diff Detail

Event Timeline

nicolasvasilache requested review of this revision.Sep 9 2022, 6:06 AM
Herald added a project: Restricted Project. · View Herald Transcript
springerm accepted this revision.Sep 9 2022, 6:22 AM
springerm added inline comments.
mlir/lib/Dialect/Vector/Transforms/VectorDistribute.cpp
793–794

I think this needs an updateRootInPlace. Alternative: Store replacements in a SmallVector, then use the rewrite to replace. (If a result has no uses, the replacement value can be an empty Value().)

This revision is now accepted and ready to land.Sep 9 2022, 6:22 AM

Drop spurious includes.

Address review.

mlir/lib/Dialect/Vector/Transforms/VectorDistribute.cpp
793–794

good catch, thanks!

This revision was landed with ongoing or failed builds.Sep 9 2022, 6:53 AM
This revision was automatically updated to reflect the committed changes.