If a block has no successors because it ends in unreachable,
this was accessing an invalid iterator.
Also stop counting instructions that don't emit any
real instructions.
Paths
| Differential D19709
AMDGPU: Fix crash with unreachable terminators. ClosedPublic Authored by arsenm on Apr 28 2016, 11:12 PM.
Details
Summary If a block has no successors because it ends in unreachable, Also stop counting instructions that don't emit any
Diff Detail Event Timelinearsenm updated this object. This revision is now accepted and ready to land.Apr 29 2016, 10:03 AM
Revision Contents
Diff 55533 lib/Target/AMDGPU/SILowerControlFlow.cpp
test/CodeGen/AMDGPU/si-lower-control-flow-unreachable-block.ll
|