This is an archive of the discontinued LLVM Phabricator instance.

[PowerPC] Fix PPCVSXSwapRemoval pass to include MTVSCR and MFVSCR as not swappable.
ClosedPublic

Authored by quinnp on Jun 17 2022, 7:47 AM.

Details

Summary

This patch adds the instructions MTVSCR and MFVSCR as not swappable to the
PPCVSXSwapRemoval pass because they are not lane-insensitive. This will prevent
the compiler from optimizing out required swaps when using lxvd2x and
stxvd2x.

Diff Detail

Event Timeline

quinnp created this revision.Jun 17 2022, 7:47 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 17 2022, 7:47 AM
quinnp requested review of this revision.Jun 17 2022, 7:47 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 17 2022, 7:47 AM
quinnp added reviewers: Restricted Project, nemanjai, lei, stefanp.Jun 17 2022, 7:48 AM
nemanjai accepted this revision.Jun 17 2022, 7:51 AM

LGTM. Thanks for fixing this.

This revision is now accepted and ready to land.Jun 17 2022, 7:51 AM
This revision was landed with ongoing or failed builds.Jun 17 2022, 8:14 AM
This revision was automatically updated to reflect the committed changes.