From: Connor Abbott Date: Fri, 14 May 2021 17:14:47 +0000 (+0200) Subject: ir3: Remove unused check_src_cond() X-Git-Tag: upstream/21.2.3~2099 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1f3546c9e2de1bdbb0bd76186471022eb66d6163;p=platform%2Fupstream%2Fmesa.git ir3: Remove unused check_src_cond() Part-of: --- diff --git a/src/freedreno/ir3/ir3.h b/src/freedreno/ir3/ir3.h index f7d8dc1..a62eee4 100644 --- a/src/freedreno/ir3/ir3.h +++ b/src/freedreno/ir3/ir3.h @@ -1419,33 +1419,6 @@ static inline bool __is_false_dep(struct ir3_instruction *instr, unsigned n) #define foreach_array_safe(__array, __list) \ list_for_each_entry_safe(struct ir3_array, __array, __list, node) -/* Check if condition is true for any src instruction. - */ -static inline bool -check_src_cond(struct ir3_instruction *instr, bool (*cond)(struct ir3_instruction *)) -{ - /* Note that this is also used post-RA so skip the ssa iterator: */ - foreach_src (reg, instr) { - struct ir3_instruction *src = reg->instr; - - if (!src) - continue; - - /* meta:split/collect aren't real instructions, the thing that - * we actually care about is *their* srcs - */ - if ((src->opc == OPC_META_SPLIT) || (src->opc == OPC_META_COLLECT)) { - if (check_src_cond(src, cond)) - return true; - } else { - if (cond(src)) - return true; - } - } - - return false; -} - #define IR3_PASS(ir, pass, ...) ({ \ bool progress = pass(ir, ##__VA_ARGS__); \ if (progress) { \