HomePhabricator

PrologEpilogInserter: Rewrite API to determine callee save regsiters.
Audit RequiredrL242165

Description

PrologEpilogInserter: Rewrite API to determine callee save regsiters.

This changes TargetFrameLowering::processFunctionBeforeCalleeSavedScan():

  • Rename the function to determineCalleeSaves()
  • Pass a bitset of callee saved registers by reference, thus avoiding the function-global PhysRegUsed bitset in MachineRegisterInfo.
  • Without PhysRegUsed the implementation is fine tuned to not save physcial registers which are only read but never modified.

Related to rdar://21539507

Differential Revision: http://reviews.llvm.org/D10909

Details

Auditors
dsanders
Committed
matzeJul 14 2015, 10:17 AM
Differential Revision
D10909: PrologEpilogInserter: Improve API to determine callee save regsiters.
Parents
rL242164: AArch64: add rev64 alias for 64-bit rev instruction.
Branches
Unknown
Tags
Unknown