From: Daniel Schürmann Date: Thu, 7 Nov 2019 15:22:55 +0000 (+0100) Subject: aco: preserve kill flag on moved operands during RA X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b6f5085dfee81d9c54fcda883d2b06742134084a;p=mesa.git aco: preserve kill flag on moved operands during RA Fixes: 93c8ebfa780ebd1495095e794731881aef29e7d3 aco: Initial commit of independent AMD compiler Reviewed-by: Rhys Perry --- 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); } }