This is an archive of the discontinued LLVM Phabricator instance.

[PEI] Simplify handling of targets with no phys regs. NFC
ClosedPublic

Authored by thegameg on Jul 19 2017, 2:01 PM.

Details

Summary

Make doSpillCalleeSavedRegs a member function, instead of passing most of the members of PEI as arguments.

Diff Detail

Repository
rL LLVM

Event Timeline

thegameg created this revision.Jul 19 2017, 2:01 PM
thegameg retitled this revision from [PEI] Simplify handling of targets with no pays regs. NFC to [PEI] Simplify handling of targets with no phys regs. NFC.
MatzeB accepted this revision.Jul 19 2017, 4:26 PM
MatzeB added a subscriber: qcolombet.

LGTM. I wish we wouldn't use std::functions here at all and instead something like a base class with two subclasses, but that is for another patch.

This revision is now accepted and ready to land.Jul 19 2017, 4:26 PM
This revision was automatically updated to reflect the committed changes.
thegameg reopened this revision.Jul 31 2017, 11:44 AM

Reverted in r308581.

This revision is now accepted and ready to land.Jul 31 2017, 11:44 AM
thegameg closed this revision.Nov 3 2017, 2:49 AM

Rebased and commited in rL317309.