]> granicus.if.org Git - llvm/commit
AMDGPU: Fix iterator error when lowering SI_END_CF
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Sun, 18 Aug 2019 00:20:44 +0000 (00:20 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Sun, 18 Aug 2019 00:20:44 +0000 (00:20 +0000)
commit6576f8b1d3a13e3dcea51857068410b4a2d5e7ee
tree04bcf506910fa8cb5bf7c970ee639c30571d2a6a
parent295d2ad713795750e79288e5604fbc10e6a0a558
AMDGPU: Fix iterator error when lowering SI_END_CF

If the instruction is the last in the block, there is no next
instruction but the iteration still needs to look at the new block.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369203 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/SILowerControlFlow.cpp
test/CodeGen/AMDGPU/si-lower-control-flow.mir