This is an archive of the discontinued LLVM Phabricator instance.

[PowerPC] Fix the register allocation hints for ACC registers.
ClosedPublic

Authored by stefanp on Sep 22 2022, 4:13 PM.

Details

Summary

The allocation hints for copies of ACC registers assumed that we would only be
copying between VSRp and UACC registers. In reality it is also possible to copy
between UACC and ACC registers.

This patch adds a new case for the ACC copy to fix that issue.
Note that the test case added with this patch will hit an assert without the
fix.

Diff Detail

Event Timeline

stefanp created this revision.Sep 22 2022, 4:13 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 22 2022, 4:13 PM
stefanp requested review of this revision.Sep 22 2022, 4:13 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 22 2022, 4:13 PM
stefanp added reviewers: amyk, Restricted Project.Sep 22 2022, 4:13 PM
lei accepted this revision as: lei.Sep 28 2022, 2:38 PM

LGTM
Thx

This revision is now accepted and ready to land.Sep 28 2022, 2:38 PM
amyk accepted this revision as: amyk.Sep 28 2022, 3:47 PM

This patch LGTM as well.

stefanp updated this revision to Diff 465247.Oct 4 2022, 6:25 PM

Rebased to top of main branch.

This revision was landed with ongoing or failed builds.Oct 4 2022, 6:30 PM
This revision was automatically updated to reflect the committed changes.