This is an archive of the discontinued LLVM Phabricator instance.

[PowerPC] Fix i64 to vector lowering on big endian
ClosedPublic

Authored by qiucf on Jun 29 2021, 3:00 AM.

Details

Summary

Lowering for scalar to vector would skip if current subtarget is big endian and the scalar is larger or equal than 64 bits. However there's some issue in implementation that SToVRHS may refer to SToVLHS's scalar size if SToVLHS is present, which leads to some crash.

Diff Detail

Event Timeline

qiucf created this revision.Jun 29 2021, 3:00 AM
qiucf requested review of this revision.Jun 29 2021, 3:00 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 29 2021, 3:00 AM
qiucf updated this revision to Diff 356442.Jul 5 2021, 12:25 AM

Use a simpler test case and add comments.

shchenz accepted this revision.Jul 5 2021, 10:45 PM

LGTM. Thanks.

Please wait for several days to see if @nemanjai is ok with this fix.

This revision is now accepted and ready to land.Jul 5 2021, 10:45 PM
nemanjai accepted this revision.Jul 7 2021, 2:48 AM

LGTM. Thanks for fixing this.

This revision was automatically updated to reflect the committed changes.