Matt Arsenault c10caa3301 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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@268119 91177308-0d34-0410-b5e6-96231b3b80d8
2016-04-29 21:52:13 +00:00
..
2016-01-26 21:29:08 +00:00
2016-04-21 14:56:33 +00:00
2016-03-28 13:09:54 +00:00
2016-04-18 09:17:29 +00:00
2016-03-01 21:29:33 +00:00