projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
nir/algebraic: Add a couple optimizations for iabs and ishr
[mesa.git]
/
src
/
compiler
/
nir
/
nir_search_helpers.h
diff --git
a/src/compiler/nir/nir_search_helpers.h
b/src/compiler/nir/nir_search_helpers.h
index 89f1cba5c52ebaaa8f461fed82bd55207c446de1..456de81e1754ec63c43e4f8bc66738e6910ea765 100644
(file)
--- a/
src/compiler/nir/nir_search_helpers.h
+++ b/
src/compiler/nir/nir_search_helpers.h
@@
-154,6
+154,12
@@
is_used_once(nir_alu_instr *instr)
return true;
}
+static inline bool
+is_used_by_if(nir_alu_instr *instr)
+{
+ return !list_empty(&instr->dest.dest.ssa.if_uses);
+}
+
static inline bool
is_not_used_by_if(nir_alu_instr *instr)
{