aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/lima/ir
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2020-01-21 15:07:24 -0800
committerMarge Bot <[email protected]>2020-01-23 01:52:43 +0000
commit4413537c80b58978f61f468a5a36d1d75756d6b3 (patch)
tree67363cae1c92d1d406bee03f5016318bc55b5c78 /src/gallium/drivers/lima/ir
parentd3eb2a0951ede3c7dcce891c3a153f3ebbb59bae (diff)
util: Remove tmp argument from BITSET_FOREACH_SET macro
Reviewed-by: Jason Ekstrand <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3499> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3499>
Diffstat (limited to 'src/gallium/drivers/lima/ir')
-rw-r--r--src/gallium/drivers/lima/ir/gp/regalloc.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/gallium/drivers/lima/ir/gp/regalloc.c b/src/gallium/drivers/lima/ir/gp/regalloc.c
index 91590d7364f..b268841839d 100644
--- a/src/gallium/drivers/lima/ir/gp/regalloc.c
+++ b/src/gallium/drivers/lima/ir/gp/regalloc.c
@@ -191,14 +191,13 @@ static void add_all_interferences(struct regalloc_ctx *ctx,
BITSET_WORD *live_regs)
{
int live_node;
- BITSET_WORD tmp;
- BITSET_FOREACH_SET(live_node, tmp, live_nodes, ctx->comp->cur_index) {
+ BITSET_FOREACH_SET(live_node, live_nodes, ctx->comp->cur_index) {
add_interference(ctx, i,
live_node + ctx->comp->cur_reg);
}
int live_reg;
- BITSET_FOREACH_SET(live_reg, tmp, ctx->live, ctx->comp->cur_index) {
+ BITSET_FOREACH_SET(live_reg, ctx->live, ctx->comp->cur_index) {
add_interference(ctx, i, live_reg);
}
@@ -211,11 +210,10 @@ static void print_liveness(struct regalloc_ctx *ctx,
return;
int live_idx;
- BITSET_WORD tmp;
- BITSET_FOREACH_SET(live_idx, tmp, live_reg, ctx->comp->cur_reg) {
+ BITSET_FOREACH_SET(live_idx, live_reg, ctx->comp->cur_reg) {
printf("reg%d ", live_idx);
}
- BITSET_FOREACH_SET(live_idx, tmp, live_val, ctx->comp->cur_index) {
+ BITSET_FOREACH_SET(live_idx, live_val, ctx->comp->cur_index) {
printf("%d ", live_idx);
}
printf("\n");
@@ -446,8 +444,7 @@ static void assign_regs(struct regalloc_ctx *ctx)
block->live_out_phys = 0;
int reg_idx;
- BITSET_WORD tmp;
- BITSET_FOREACH_SET(reg_idx, tmp, block->live_out, ctx->comp->cur_reg) {
+ BITSET_FOREACH_SET(reg_idx, block->live_out, ctx->comp->cur_reg) {
if (BITSET_TEST(block->def_out, reg_idx)) {
block->live_out_phys |= (1ull << ctx->registers[reg_idx].assigned_color);
}