This is an archive of the discontinued LLVM Phabricator instance.

[SLP]Fix PR55796: insert point for extractelements from different basic blocks.
ClosedPublic

Authored by ABataev on Jun 1 2022, 6:37 AM.

Details

Summary

Extractelement instructions may come from different basic blocks, need
to take it into account when looking for a last instruction in the
bundle to prevent compiler crash.

Diff Detail

Event Timeline

ABataev created this revision.Jun 1 2022, 6:37 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 1 2022, 6:37 AM
ABataev requested review of this revision.Jun 1 2022, 6:37 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 1 2022, 6:37 AM
anna added a comment.Jun 1 2022, 7:42 AM

This patch works for the crashes we saw downstream. Thanks!

anna accepted this revision.Jun 1 2022, 8:53 AM
anna added inline comments.
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
7235–7236

Update comment?

This revision is now accepted and ready to land.Jun 1 2022, 8:53 AM
ABataev added inline comments.Jun 1 2022, 9:12 AM
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
7235–7236

Yes, will do, thanks!