This is an archive of the discontinued LLVM Phabricator instance.

[mlir][vector] VectorToSCF: Omit redundant out-of-bounds check
ClosedPublic

Authored by springerm on Jul 13 2023, 6:28 AM.

Details

Summary

There was a bug in TransferWriteNonPermutationLowering, a pattern that extends the permutation map of a TransferWriteOp with leading transfer dimensions of size ones. These newly added transfer dimensions are always in-bounds, because the starting point of any dimension is in-bounds. VectorToSCF inserts out-of-bounds checks based on the "in_bounds" attribute and dims that are marked as out-of-bounds but that are actually always in-bounds lead to unnecessary "scf.if" ops.

Depends On: D155172

Diff Detail

Event Timeline

springerm created this revision.Jul 13 2023, 6:28 AM
Herald added a project: Restricted Project. · View Herald Transcript
springerm requested review of this revision.Jul 13 2023, 6:28 AM
Herald added a project: Restricted Project. · View Herald Transcript
dcaballe accepted this revision.Jul 13 2023, 12:37 PM
This revision is now accepted and ready to land.Jul 13 2023, 12:37 PM