Matt Arsenault 701c21ea10 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
2016-04-29 21:52:13 +00:00
..
2016-04-18 09:17:29 +00:00
2016-01-26 21:29:08 +00:00
2016-03-24 15:31:05 +00:00
2016-04-18 09:17:29 +00:00
2016-04-18 09:17:29 +00:00