This is an archive of the discontinued LLVM Phabricator instance.

[SLP]Fix PR59230: Use actual vector factor when sorting entries.
ClosedPublic

Authored by ABataev on Nov 28 2022, 7:11 AM.

Details

Summary

When we sort entries for attempting to reorder scalars, need to use
actual vectorization factor, not the number of scalars. Otherwise the
compiler crashes, if the scalars has to be reordered.

Diff Detail

Event Timeline

ABataev created this revision.Nov 28 2022, 7:11 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 28 2022, 7:11 AM
ABataev requested review of this revision.Nov 28 2022, 7:11 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 28 2022, 7:11 AM

Have you checked if all other Scalars.size() calls are correct?

ABataev updated this revision to Diff 478276.Nov 28 2022, 10:08 AM

Fixed another Scalars.size() use

RKSimon accepted this revision.Nov 29 2022, 3:16 AM

LGTM - cheers

This revision is now accepted and ready to land.Nov 29 2022, 3:16 AM
This revision was landed with ongoing or failed builds.Nov 29 2022, 6:47 AM
This revision was automatically updated to reflect the committed changes.