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
This commit is contained in:
Matt Arsenault 2016-06-30 20:49:28 +00:00
parent 19cf6b6c93
commit c1142725bd
1 changed files with 1 additions and 0 deletions

View File

@ -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);