[llvm] r364473 - AMDGPU: Assert SPAdj is 0

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 26 13:56:18 PDT 2019


Author: arsenm
Date: Wed Jun 26 13:56:18 2019
New Revision: 364473

URL: http://llvm.org/viewvc/llvm-project?rev=364473&view=rev
Log:
AMDGPU: Assert SPAdj is 0

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=364473&r1=364472&r2=364473&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/SIRegisterInfo.cpp (original)
+++ llvm/trunk/lib/Target/AMDGPU/SIRegisterInfo.cpp Wed Jun 26 13:56:18 2019
@@ -1060,6 +1060,8 @@ void SIRegisterInfo::eliminateFrameIndex
   const SIInstrInfo *TII = ST.getInstrInfo();
   DebugLoc DL = MI->getDebugLoc();
 
+  assert(SPAdj == 0 && "unhandled SP adjustment in call sequence?");
+
   MachineOperand &FIOp = MI->getOperand(FIOperandNum);
   int Index = MI->getOperand(FIOperandNum).getIndex();
 




More information about the llvm-commits mailing list