projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
46a4d2c
)
nir: turn an ssa check in nir_search into an assert
author
Timothy Arceri
<tarceri@itsqueeze.com>
Wed, 13 Feb 2019 05:09:20 +0000
(16:09 +1100)
committer
Timothy Arceri
<tarceri@itsqueeze.com>
Wed, 13 Feb 2019 22:35:32 +0000
(09:35 +1100)
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 <cwabbott0@gmail.com>
src/compiler/nir/nir_search.c
patch
|
blob
|
history
diff --git
a/src/compiler/nir/nir_search.c
b/src/compiler/nir/nir_search.c
index 8578ca53c877ccc0d84d317315a807c6ae872ddb..d257b63918927b9b8a00686c5caa8c814a7789ae 100644
(file)
--- 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.