Page MenuHomePhabricator

[PowerPC][NFC] Cleanup load/store spilling code

Authored by lei on May 11 2020, 11:57 AM.



Cleanup and commonize code used for spilling to the stack.

Diff Detail

Event Timeline

lei created this revision.May 11 2020, 11:57 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 11 2020, 11:57 AM
lei retitled this revision from [rton,PowerPC][NFC] Cleanup load/store spilling code to [PowerPC][NFC] Cleanup load/store spilling code.May 11 2020, 12:29 PM
jsji added a reviewer: Restricted Project.May 13 2020, 8:15 AM
jsji added a project: Restricted Project.
kamaub added a subscriber: kamaub.May 14 2020, 12:02 PM

I think the index for the StoreSpillOpcodesArray and LoadSpillOpcodesArray arrays are incorrect.

Besides that the patch LGTM and I want to approve it.


The indentation in these code blocks needs to be unified.


enums start at 0 so i think this should be SOK_LastOpcodeSpill +1 right?


Same as above comment.

kamaub accepted this revision as: kamaub.May 14 2020, 12:07 PM
kamaub marked an inline comment as done.

LGTM, one pre-commit nit with the indentation.


I realise now that this is on purpose as the #define opcodes only have 15 entries, my apologies.

This revision is now accepted and ready to land.May 14 2020, 12:07 PM
lei marked 2 inline comments as done.May 14 2020, 2:30 PM
lei added inline comments.

this was actually done by clang-format.

nemanjai accepted this revision.May 14 2020, 2:42 PM


This revision was automatically updated to reflect the committed changes.