nir: Use !block_ends_in_jump() in a few places rather than open-coding.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 24 Aug 2015 19:18:51 +0000 (12:18 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 24 Aug 2015 22:10:55 +0000 (15:10 -0700)
commit4f2cdd849738019ce9552ee1d5f8dafce8af3f10
tree7617e1b8d7cad45d9f4937ae7482c25c3c4578db
parentd7971b41ce3bd5ffce9580b3796b40d3591d6e5e
nir: Use !block_ends_in_jump() in a few places rather than open-coding.

Connor introduced this helper recently; we should use it here too.

I had to move the function earlier in the file for it to be available.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/glsl/nir/nir_control_flow.c