summaryrefslogtreecommitdiffstats
path: root/src/intel/compiler
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2019-10-28 21:27:52 +1100
committerTimothy Arceri <[email protected]>2019-10-28 11:24:38 +0000
commit7f106a2b5d0b27c1ce47a4b335c4cc8ae9cd460b (patch)
tree1307edca18a23a59f1a50d2bcc41d054a7453676 /src/intel/compiler
parentc578600489e35abb481816c87124b1dc6b279655 (diff)
util: rename list_empty() to list_is_empty()
This makes it clear that it's a boolean test and not an action (eg. "empty the list"). Reviewed-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src/intel/compiler')
-rw-r--r--src/intel/compiler/brw_nir_opt_peephole_ffma.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/intel/compiler/brw_nir_opt_peephole_ffma.c b/src/intel/compiler/brw_nir_opt_peephole_ffma.c
index 58fabb17923..45a5f56c8aa 100644
--- a/src/intel/compiler/brw_nir_opt_peephole_ffma.c
+++ b/src/intel/compiler/brw_nir_opt_peephole_ffma.c
@@ -36,7 +36,7 @@
static inline bool
are_all_uses_fadd(nir_ssa_def *def)
{
- if (!list_empty(&def->if_uses))
+ if (!list_is_empty(&def->if_uses))
return false;
nir_foreach_use(use_src, def) {
@@ -153,7 +153,7 @@ any_alu_src_is_a_constant(nir_alu_src srcs[])
nir_instr_as_load_const (srcs[i].src.ssa->parent_instr);
if (list_is_singular(&load_const->def.uses) &&
- list_empty(&load_const->def.if_uses)) {
+ list_is_empty(&load_const->def.if_uses)) {
return true;
}
}
@@ -256,7 +256,7 @@ brw_nir_opt_peephole_ffma_block(nir_builder *b, nir_block *block)
nir_src_for_ssa(&ffma->dest.dest.ssa));
nir_builder_instr_insert(b, &ffma->instr);
- assert(list_empty(&add->dest.dest.ssa.uses));
+ assert(list_is_empty(&add->dest.dest.ssa.uses));
nir_instr_remove(&add->instr);
progress = true;