nir: return false for loops in contains_other_jump()
Allows to unwrap more loops. Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12473>
This commit is contained in:
parent
8de086e12f
commit
59f2c85845
|
@ -63,7 +63,8 @@ contains_other_jump(nir_cf_node *node, nir_instr *expected_jump)
|
|||
return false;
|
||||
}
|
||||
case nir_cf_node_loop:
|
||||
return true;
|
||||
/* the jumps of nested loops are unrelated */
|
||||
return false;
|
||||
|
||||
default:
|
||||
unreachable("Unhandled cf node type");
|
||||
|
|
Loading…
Reference in New Issue