Mesa (master): freedreno/ir3/ra: remove unused variable

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Apr 28 20:31:18 UTC 2020


Module: Mesa
Branch: master
Commit: 8b3ac7084ab71807850416fc1324c5ca0a42e01e
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8b3ac7084ab71807850416fc1324c5ca0a42e01e

Author: Rob Clark <robdclark at chromium.org>
Date:   Mon Apr 27 16:57:38 2020 -0700

freedreno/ir3/ra: remove unused variable

Signed-off-by: Rob Clark <robdclark at chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4780>

---

 src/freedreno/ir3/ir3_ra.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/freedreno/ir3/ir3_ra.c b/src/freedreno/ir3/ir3_ra.c
index f74174498d0..94386ed4694 100644
--- a/src/freedreno/ir3/ir3_ra.c
+++ b/src/freedreno/ir3/ir3_ra.c
@@ -1274,7 +1274,6 @@ ra_block_alloc(struct ir3_ra_ctx *ctx, struct ir3_block *block)
 static void
 ra_precolor(struct ir3_ra_ctx *ctx, struct ir3_instruction **precolor, unsigned nprecolor)
 {
-	unsigned num_precolor = 0;
 	for (unsigned i = 0; i < nprecolor; i++) {
 		if (precolor[i] && !(precolor[i]->flags & IR3_INSTR_UNUSED)) {
 			struct ir3_instruction *instr = precolor[i];
@@ -1314,7 +1313,6 @@ ra_precolor(struct ir3_ra_ctx *ctx, struct ir3_instruction **precolor, unsigned
 			unsigned reg = ctx->set->gpr_to_ra_reg[id->cls][regid];
 			unsigned name = ra_name(ctx, id);
 			ra_set_node_reg(ctx->g, name, reg);
-			num_precolor = MAX2(regid, num_precolor);
 		}
 	}
 



More information about the mesa-commit mailing list