mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-10 01:40:14 +01:00
nir/opt_if: Use block_ends_in_jump
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23782>
This commit is contained in:
parent
7ddfc43fdf
commit
f278b30e94
1 changed files with 1 additions and 2 deletions
|
|
@ -195,8 +195,7 @@ opt_peel_loop_initial_if(nir_loop *loop)
|
|||
*/
|
||||
foreach_list_typed(nir_cf_node, cf_node, node, entry_list) {
|
||||
nir_foreach_block_in_cf_node(block, cf_node) {
|
||||
nir_instr *last_instr = nir_block_last_instr(block);
|
||||
if (last_instr && last_instr->type == nir_instr_type_jump)
|
||||
if (nir_block_ends_in_jump(block))
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue