AMDGPU: Fix crash with unreachable terminators.
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. llvm-svn: 268119
Loading
Please sign in to comment