findDeadCallerSavedReg needs to pay attention to calling convention
authorAndy Ayers <andya@microsoft.com>
Mon, 23 Nov 2015 22:17:44 +0000 (22:17 +0000)
committerAndy Ayers <andya@microsoft.com>
Mon, 23 Nov 2015 22:17:44 +0000 (22:17 +0000)
commit77a84a94519452389efb04ff927fdecc9b1b910c
treedd809833f6e64efeff116239374ad776f454fccd
parent272978f362d4afbab9dd12e4cb6a7f905bebec64
findDeadCallerSavedReg needs to pay attention to calling convention

Caller saved regs differ between SysV and Win64. Use the tail call available set to scavenge from.

Refactor register info to create new helper to get at tail call GPRs. Added a new test case for windows. Fixed up a number of X64 tests since now RCX is preferred over RDX on SysV.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253927 91177308-0d34-0410-b5e6-96231b3b80d8
12 files changed:
lib/Target/X86/X86FrameLowering.cpp
lib/Target/X86/X86RegisterInfo.cpp
lib/Target/X86/X86RegisterInfo.h
lib/Target/X86/X86RegisterInfo.td
test/CodeGen/X86/emutls-pie.ll
test/CodeGen/X86/emutls.ll
test/CodeGen/X86/half.ll
test/CodeGen/X86/statepoint-allocas.ll
test/CodeGen/X86/statepoint-call-lowering.ll
test/CodeGen/X86/statepoint-gctransition-call-lowering.ll
test/CodeGen/X86/vector-sext.ll
test/CodeGen/X86/win64_sibcall.ll [new file with mode: 0644]