This is an archive of the discontinued LLVM Phabricator instance.

[mlir][tensor] Fix insert_slice + tensor cast overflow
ClosedPublic

Authored by nicolasvasilache on Dec 10 2021, 1:28 PM.

Details

Summary

InsertSliceOp may have subprefix semantics where missing trailing dimensions
are automatically inferred directly from the operand shape.
This revision fixes an overflow that occurs in such cases when the impl is based on the op rank.

Diff Detail

Event Timeline

nicolasvasilache requested review of this revision.Dec 10 2021, 1:28 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 10 2021, 1:28 PM
ThomasRaoux accepted this revision.Dec 10 2021, 1:28 PM
This revision is now accepted and ready to land.Dec 10 2021, 1:28 PM
This revision was landed with ongoing or failed builds.Dec 10 2021, 1:41 PM
This revision was automatically updated to reflect the committed changes.