[PATCH] D66382: AMDGPU: Fix iterator error when lowering SI_END_CF

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 17 13:43:04 PDT 2019


arsenm created this revision.
arsenm added reviewers: rampitec, nhaehnle.
Herald added subscribers: t-tye, tpr, dstuttard, yaxunl, wdng, jvesely, kzhuravl.

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.


https://reviews.llvm.org/D66382

Files:
  lib/Target/AMDGPU/SILowerControlFlow.cpp
  test/CodeGen/AMDGPU/si-lower-control-flow.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D66382.215752.patch
Type: text/x-patch
Size: 4709 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190817/e17c3230/attachment.bin>


More information about the llvm-commits mailing list