This is an archive of the discontinued LLVM Phabricator instance.

[Matrix] Add assert to extractVector with undef values
ClosedPublic

Authored by thegameg on Jul 20 2022, 7:40 AM.

Details

Summary

Assert when the extracted vector is wider than the row/column.

Diff Detail

Event Timeline

thegameg created this revision.Jul 20 2022, 7:40 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 20 2022, 7:40 AM
thegameg requested review of this revision.Jul 20 2022, 7:40 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 20 2022, 7:40 AM
thegameg updated this revision to Diff 446155.Jul 20 2022, 7:53 AM
fhahn accepted this revision.Jul 25 2022, 8:46 AM

LGTM, thanks!

[Matrix] Add assert to extractVector with undef values

might be slightly clearer to say something like [Matrix] Add assert to catch extracted vectors with poison elements

llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp
343

nit: Technically it would contain poison values now right?

This revision is now accepted and ready to land.Jul 25 2022, 8:46 AM
thegameg marked an inline comment as done.Jul 26 2022, 11:06 AM
thegameg added inline comments.
llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp
343

Yep that's correct!

This revision was landed with ongoing or failed builds.Jul 26 2022, 11:17 AM
This revision was automatically updated to reflect the committed changes.
thegameg marked an inline comment as done.