From c1142725bdb5540f6b9d08bf6c8ad51af4fbf1be Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Thu, 30 Jun 2016 20:49:28 +0000 Subject: [PATCH] AMDGPU: Add m0 vgpr load loop block as successor This shows up as a verifier error when I move this earlier, not sure why it didn't before. llvm-svn: 274275 --- llvm/lib/Target/AMDGPU/SILowerControlFlow.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/llvm/lib/Target/AMDGPU/SILowerControlFlow.cpp b/llvm/lib/Target/AMDGPU/SILowerControlFlow.cpp index 861aa83888d9..ae23a96b621b 100644 --- a/llvm/lib/Target/AMDGPU/SILowerControlFlow.cpp +++ b/llvm/lib/Target/AMDGPU/SILowerControlFlow.cpp @@ -521,6 +521,7 @@ bool SILowerControlFlow::loadM0(MachineInstr &MI, MachineInstr *MovRel, int Offs // Move the rest of the block into a new block. RemainderBB->transferSuccessors(&MBB); RemainderBB->splice(RemainderBB->begin(), &MBB, I, MBB.end()); + MBB.addSuccessor(LoopBB); emitLoadM0FromVGPRLoop(*LoopBB, DL, MovRel, *Idx, Offset);