[llvm] r356149 - AMDGPU: Scavenge register instead of findUnusedReg
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 14 07:19:01 PDT 2019
Author: arsenm
Date: Thu Mar 14 07:19:01 2019
New Revision: 356149
URL: http://llvm.org/viewvc/llvm-project?rev=356149&view=rev
Log:
AMDGPU: Scavenge register instead of findUnusedReg
Modified:
llvm/trunk/lib/Target/AMDGPU/SIRegisterInfo.cpp
Modified: llvm/trunk/lib/Target/AMDGPU/SIRegisterInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/SIRegisterInfo.cpp?rev=356149&r1=356148&r2=356149&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/SIRegisterInfo.cpp (original)
+++ llvm/trunk/lib/Target/AMDGPU/SIRegisterInfo.cpp Thu Mar 14 07:19:01 2019
@@ -564,7 +564,7 @@ void SIRegisterInfo::buildSpillLoadStore
// We don't have access to the register scavenger if this function is called
// during PEI::scavengeFrameVirtualRegs().
if (RS)
- SOffset = RS->FindUnusedReg(&AMDGPU::SGPR_32RegClass);
+ SOffset = RS->scavengeRegister(&AMDGPU::SGPR_32RegClass, 0, false);
if (SOffset == AMDGPU::NoRegister) {
// There are no free SGPRs, and since we are in the process of spilling
More information about the llvm-commits
mailing list