summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir_search.c
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2019-02-13 16:09:20 +1100
committerTimothy Arceri <[email protected]>2019-02-14 09:35:32 +1100
commit68baf96824a5a02f7ed82cd6b90eefc402ef83eb (patch)
tree3b5dbd4c4d6f92ebc465e46e39db8e4aeb6762d3 /src/compiler/nir/nir_search.c
parent46a4d2c8675d264357e0c8195220db3f9e94631f (diff)
nir: turn an ssa check in nir_search into an assert
Everything should be in ssa form when we call this. This is a hotpath so replace the check with an assert. Reviewed-by: Connor Abbott <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir_search.c')
-rw-r--r--src/compiler/nir/nir_search.c3
1 files changed, 1 insertions, 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.