[llvm] r313205 - AMDGPU: Handle coldcc in more places

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 13 14:55:53 PDT 2017


Author: arsenm
Date: Wed Sep 13 14:55:52 2017
New Revision: 313205

URL: http://llvm.org/viewvc/llvm-project?rev=313205&view=rev
Log:
AMDGPU: Handle coldcc in more places

Missed in r312936

Modified:
    llvm/trunk/lib/Target/AMDGPU/AMDGPURegisterInfo.cpp

Modified: llvm/trunk/lib/Target/AMDGPU/AMDGPURegisterInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/AMDGPURegisterInfo.cpp?rev=313205&r1=313204&r2=313205&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/AMDGPURegisterInfo.cpp (original)
+++ llvm/trunk/lib/Target/AMDGPU/AMDGPURegisterInfo.cpp Wed Sep 13 14:55:52 2017
@@ -47,6 +47,7 @@ const MCPhysReg *SIRegisterInfo::getCall
   switch (CC) {
   case CallingConv::C:
   case CallingConv::Fast:
+  case CallingConv::Cold:
     return CSR_AMDGPU_HighRegs_SaveList;
   default: {
     // Dummy to not crash RegisterClassInfo.
@@ -75,6 +76,7 @@ const uint32_t *SIRegisterInfo::getCallP
   switch (CC) {
   case CallingConv::C:
   case CallingConv::Fast:
+  case CallingConv::Cold:
     return CSR_AMDGPU_HighRegs_RegMask;
   default:
     return nullptr;




More information about the llvm-commits mailing list