diff options
author | Ian Romanick <ian.d.romanick@intel.com> | 2019-02-20 13:55:32 -0800 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2019-03-26 10:29:21 -0700 |
commit | bd821d7c5178ce28ad69b75620f05a2e3680a59a (patch) | |
tree | d4cf130a4f4d64984f5389f52f06ddf5ae791cee | |
parent | 1cf05f9d762219626f0d9b168961319ec1eb0fc8 (diff) |
nir/search: Allow non-SSA destination
It does not matter whether or not the destination at the root of an
expression tree is SSA. The destinations of other
nir_search_value_expression will never occur due to checks in
match_value.
-rw-r--r-- | src/compiler/nir/nir_search.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/compiler/nir/nir_search.c b/src/compiler/nir/nir_search.c index 7c7f1a0afe79..363d9ba247e2 100644 --- a/src/compiler/nir/nir_search.c +++ b/src/compiler/nir/nir_search.c @@ -323,8 +323,6 @@ match_expression(const nir_search_expression *expr, nir_alu_instr *instr, if (!nir_op_matches_search_op(instr->op, expr->opcode)) return false; - assert(instr->dest.dest.is_ssa); - if (expr->value.bit_size > 0 && instr->dest.dest.ssa.bit_size != expr->value.bit_size) return false; |