This is an archive of the discontinued LLVM Phabricator instance.

[SLP]Fix a crash when reorder masked gather nodes with reused scalars.
ClosedPublic

Authored by ABataev on Jun 22 2022, 10:18 AM.

Details

Summary

If the masked gather nodes must be reordered, we can just reorder
scalars, just like for gather nodes. But if the node contains reused
scalars, it must be handled same way as a regular vectorizable node,
since need to reorder reused mask, not the scalars directly.

Diff Detail

Event Timeline

ABataev created this revision.Jun 22 2022, 10:18 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 22 2022, 10:18 AM
ABataev requested review of this revision.Jun 22 2022, 10:18 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 22 2022, 10:18 AM
vdmitrie accepted this revision.Jun 22 2022, 1:27 PM

Looks good. Thanks for the fix.

This revision is now accepted and ready to land.Jun 22 2022, 1:27 PM
This revision was landed with ongoing or failed builds.Jun 23 2022, 11:33 AM
This revision was automatically updated to reflect the committed changes.