From 302cb5c90015e2d3e139d575b3c7165519a21228 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Sch=C3=BCrmann?= Date: Tue, 22 Jun 2021 12:37:20 +0200 Subject: [PATCH] aco/ra: remove some redundant code No fossil-db changes. Reviewed-by: Rhys Perry Part-of: --- src/amd/compiler/aco_register_allocation.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/amd/compiler/aco_register_allocation.cpp b/src/amd/compiler/aco_register_allocation.cpp index 816159a45c2..d18a64a86e8 100644 --- a/src/amd/compiler/aco_register_allocation.cpp +++ b/src/amd/compiler/aco_register_allocation.cpp @@ -2351,17 +2351,10 @@ register_allocation(Program* program, std::vector& live_out_per_block, ra if ((*phi_it)->definitions[0].tempId() == pc.first.tempId()) prev_phi = phi_it->get(); } - phi_it = instr_it; - while (!prev_phi && is_phi(*++phi_it)) { - if ((*phi_it)->definitions[0].tempId() == pc.first.tempId()) - prev_phi = phi_it->get(); - } if (prev_phi) { /* if so, just update that phi's register */ - register_file.clear(prev_phi->definitions[0]); prev_phi->definitions[0].setFixed(pc.second.physReg()); ctx.assignments[prev_phi->definitions[0].tempId()].set(pc.second); - register_file.fill(prev_phi->definitions[0]); continue; }