This is an archive of the discontinued LLVM Phabricator instance.

[mlir][vector] Untangle TransferWriteDistribution and avoid crashing in the 0-D case.
ClosedPublic

Authored by nicolasvasilache on Jun 29 2022, 2:03 AM.

Details

Summary

This revision avoids a crash in the 0-D case of distributing vector.transfer ops out of
vector.warp_execute_on_lane_0.
Due to the code complexity and lack of documentation, it took untangling the implementation
before realizing that the simple fix was to fail in the 0-D case.
The rewrite is still very useful to understand this code better.

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald Transcript
nicolasvasilache requested review of this revision.Jun 29 2022, 2:03 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 29 2022, 2:03 AM
ThomasRaoux accepted this revision.Jun 30 2022, 9:01 AM
This revision is now accepted and ready to land.Jun 30 2022, 9:01 AM