[llvm] r356958 - Revert "AMDGPU: Scavenge register instead of findUnusedReg"
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 25 14:41:40 PDT 2019
Author: arsenm
Date: Mon Mar 25 14:41:40 2019
New Revision: 356958
URL: http://llvm.org/viewvc/llvm-project?rev=356958&view=rev
Log:
Revert "AMDGPU: Scavenge register instead of findUnusedReg"
This reverts r356149.
This is crashing on rocBLAS.
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=356958&r1=356957&r2=356958&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/SIRegisterInfo.cpp (original)
+++ llvm/trunk/lib/Target/AMDGPU/SIRegisterInfo.cpp Mon Mar 25 14:41:40 2019
@@ -575,7 +575,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->scavengeRegister(&AMDGPU::SGPR_32RegClass, 0, false);
+ SOffset = RS->FindUnusedReg(&AMDGPU::SGPR_32RegClass);
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