nir/algebraic: Remove array-of-cond code

You can't have an array of them after removing many-comm-expr, there's no
space in the struct.

Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13987>
This commit is contained in:
Emma Anholt
2021-11-30 14:17:10 -08:00
committed by Marge Bot
parent 5d82c61a30
commit 7635379dc7
+2 -1
View File
@@ -351,8 +351,9 @@ class Expression(Value):
# "many-comm-expr". If there is anything left, put it back together.
c = self.cond[1:-1].split(",")
c.remove("many-comm-expr")
assert(len(c) <= 1)
self.cond = "({})".format(",".join(c)) if c else None
self.cond = c[0] if c else None
self.many_commutative_expressions = True
self.sources = [ Value.create(src, "{0}_{1}".format(name_base, i), varset)