From 82c265a51467ec8c112146bc7a2875609d5be0cf Mon Sep 17 00:00:00 2001 From: Rhys Perry Date: Thu, 11 Jun 2020 14:22:13 +0100 Subject: [PATCH] aco: improve check for moving temporaries out of fixed definitions MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit No fossil-db changes. Signed-off-by: Rhys Perry Reviewed-by: Daniel Schürmann Part-of: --- src/amd/compiler/aco_register_allocation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/compiler/aco_register_allocation.cpp b/src/amd/compiler/aco_register_allocation.cpp index 4841b5eb6f0..985aae4cafd 100644 --- a/src/amd/compiler/aco_register_allocation.cpp +++ b/src/amd/compiler/aco_register_allocation.cpp @@ -2085,7 +2085,7 @@ void register_allocation(Program *program, std::vector& live_out_per_bl adjust_max_used_regs(ctx, definition.regClass(), definition.physReg()); /* check if the target register is blocked */ - if (register_file[definition.physReg().reg()] != 0) { + if (register_file.test(definition.physReg(), definition.bytes())) { /* create parallelcopy pair to move blocking vars */ std::set> vars = collect_vars(ctx, register_file, definition.physReg(), definition.size()); -- 2.30.2