This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Fix casting of leading unit dims for vector.insert
ClosedPublic

Authored by tyb0807 on Mar 30 2023, 3:21 PM.

Details

Summary

When dropping leading unit dims of vector.insert's operands and creating
a new vector.insert, its new position rank should be computed explicitly
in two steps: first based on the numbers of leading unit dims dropped
from the vector.insert's destination, then based on the numbers of
leading unit dims dropped from its source.

Diff Detail

Event Timeline

tyb0807 created this revision.Mar 30 2023, 3:21 PM
Herald added a project: Restricted Project. · View Herald Transcript
tyb0807 requested review of this revision.Mar 30 2023, 3:21 PM
pifon2a accepted this revision.Mar 31 2023, 4:05 AM
This revision is now accepted and ready to land.Mar 31 2023, 4:05 AM
This revision was automatically updated to reflect the committed changes.