diff options
author | Rob Clark <[email protected]> | 2020-05-16 12:08:26 -0700 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-05-19 16:06:17 +0000 |
commit | c1d33eed417a78407d0955b603085f4e521d9edf (patch) | |
tree | d2d76932d9318a02cd4fddced2fbb046b21655b1 /src/freedreno/ir3/ir3_sched.c | |
parent | 65f604e3b3b25bb95c96062675817a3828562e26 (diff) |
freedreno/ir3: make foreach_ssa_src declar cursor ptr
Signed-off-by: Rob Clark <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5048>
Diffstat (limited to 'src/freedreno/ir3/ir3_sched.c')
-rw-r--r-- | src/freedreno/ir3/ir3_sched.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/freedreno/ir3/ir3_sched.c b/src/freedreno/ir3/ir3_sched.c index e6241215d1d..bd5471d7f02 100644 --- a/src/freedreno/ir3/ir3_sched.c +++ b/src/freedreno/ir3/ir3_sched.c @@ -195,7 +195,6 @@ schedule(struct ir3_sched_ctx *ctx, struct ir3_instruction *instr) * collect srcs as partially live. */ if (n->collect) { - struct ir3_instruction *src; foreach_ssa_src (src, n->collect) { if (src->block != instr->block) continue; @@ -248,7 +247,6 @@ struct ir3_sched_notes { static bool could_sched(struct ir3_instruction *instr, struct ir3_instruction *src) { - struct ir3_instruction *other_src; foreach_ssa_src (other_src, instr) { /* if dependency not scheduled, we aren't ready yet: */ if ((src != other_src) && !is_scheduled(other_src)) { @@ -413,7 +411,6 @@ static int live_effect(struct ir3_instruction *instr) { struct ir3_sched_node *n = instr->data; - struct ir3_instruction *src; int new_live = n->partially_live ? 0 : dest_regs(instr); int freed_live = 0; @@ -875,7 +872,7 @@ mark_kill_path(struct ir3_instruction *instr) { struct ir3_sched_node *n = instr->data; n->kill_path = true; - struct ir3_instruction *src; + foreach_ssa_src (src, instr) { if (src->block != instr->block) continue; @@ -919,8 +916,6 @@ is_output_only(struct ir3_instruction *instr) static void sched_node_add_deps(struct ir3_instruction *instr) { - struct ir3_instruction *src; - /* Since foreach_ssa_src() already handles false-dep's we can construct * the DAG easily in a single pass. */ |