Commit a678ec9b authored by Yevhenii Kolesnikov's avatar Yevhenii Kolesnikov Committed by Jason Ekstrand
Browse files

nir/from_ssa: don't check for interference within the same set

Signed-off-by: Yevhenii Kolesnikov's avatarYevhenii Kolesnikov <>
Reviewed-by: Jason Ekstrand's avatarJason Ekstrand <>
Part-of: <mesa/mesa!8246>
parent fd05620e
...@@ -178,6 +178,13 @@ get_merge_node(nir_ssa_def *def, struct from_ssa_state *state) ...@@ -178,6 +178,13 @@ get_merge_node(nir_ssa_def *def, struct from_ssa_state *state)
static bool static bool
merge_nodes_interfere(merge_node *a, merge_node *b) merge_nodes_interfere(merge_node *a, merge_node *b)
{ {
/* There's no need to check for interference within the same set,
* because we assume, that sets themselves are already
* interference-free.
if (a->set == b->set)
return false;
return nir_ssa_defs_interfere(a->def, b->def); return nir_ssa_defs_interfere(a->def, b->def);
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment