Everything should be in ssa form when we call this. This is a hotpath so replace the check with an assert. --- src/compiler/nir/nir_search.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/compiler/nir/nir_search.c b/src/compiler/nir/nir_search.c index 8578ca53c87..d257b639189 100644 --- a/src/compiler/nir/nir_search.c +++ b/src/compiler/nir/nir_search.c @@ -200,8 +200,7 @@ match_value(const nir_search_value *value, nir_alu_instr *instr, unsigned src, * replacing so those reads will happen after the original reads and may * not be valid if they're register reads. */ - if (!instr->src[src].src.is_ssa) - return false; + assert(instr->src[src].src.is_ssa); /* If the source is an explicitly sized source, then we need to reset * both the number of components and the swizzle. -- 2.20.1 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev