diff options
-rw-r--r-- | src/compiler/nir/nir_range_analysis.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/compiler/nir/nir_range_analysis.c b/src/compiler/nir/nir_range_analysis.c index 7b908105b98..f9756ef080c 100644 --- a/src/compiler/nir/nir_range_analysis.c +++ b/src/compiler/nir/nir_range_analysis.c @@ -217,6 +217,9 @@ static struct ssa_result_range analyze_expression(const nir_alu_instr *instr, unsigned src, struct hash_table *ht) { + if (!instr->src[src].src.is_ssa) + return (struct ssa_result_range){unknown, false}; + if (nir_src_is_const(instr->src[src].src)) return analyze_constant(instr, src); |