From b6f5085dfee81d9c54fcda883d2b06742134084a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Daniel=20Sch=C3=BCrmann?= Date: Thu, 7 Nov 2019 16:22:55 +0100 Subject: [PATCH] aco: preserve kill flag on moved operands during RA Fixes: 93c8ebfa780ebd1495095e794731881aef29e7d3 aco: Initial commit of independent AMD compiler Reviewed-by: Rhys Perry --- 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 3b4100cddd2..c90c91a0325 100644 --- a/src/amd/compiler/aco_register_allocation.cpp +++ b/src/amd/compiler/aco_register_allocation.cpp @@ -1422,7 +1422,7 @@ void register_allocation(Program *program, std::vector> live_out_ for (unsigned j = 0; j < i; j++) { Operand& op = instr->operands[j]; if (op.isTemp() && op.tempId() == blocking_id) { - op = Operand(pc_def.getTemp()); + op.setTemp(pc_def.getTemp()); op.setFixed(reg); } } -- 2.30.2