[PATCH] D14878: findDeadCallerSavedReg needs to pay attention to calling convention

Reid Kleckner via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 23 13:31:16 PST 2015


rnk requested changes to this revision.
This revision now requires changes to proceed.

================
Comment at: include/llvm/Target/TargetRegisterInfo.h:640
@@ +639,3 @@
+  /// tail calls (~ caller save registers).
+  virtual const TargetRegisterClass *
+  getGPRsForTailCall(const MachineFunction &MF) const {
----------------
This doesn't need to be virtual, X86FrameLowering already knows that TRI is an X86RegisterInfo. This whole refactoring should be internal to the X86 backend.


Repository:
  rL LLVM

http://reviews.llvm.org/D14878





More information about the llvm-commits mailing list