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:
Daniel Schürmann 2020-10-31 23:25:12 +01:00 committed by Marge Bot
parent 8de086e12f
commit 59f2c85845
1 changed files with 2 additions and 1 deletions

View File

@ -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");