diff options
author | Daniel Schürmann <[email protected]> | 2019-11-07 16:22:55 +0100 |
---|---|---|
committer | Rhys Perry <[email protected]> | 2019-11-12 15:59:48 +0000 |
commit | b6f5085dfee81d9c54fcda883d2b06742134084a (patch) | |
tree | 6caa2dac664530a83a956de153e89895958ad813 /src | |
parent | a2a6880743d7370a6425593f22d9e98317bfc3b2 (diff) |
aco: preserve kill flag on moved operands during RA
Fixes: 93c8ebfa780ebd1495095e794731881aef29e7d3 aco: Initial commit of independent AMD compiler
Reviewed-by: Rhys Perry <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/amd/compiler/aco_register_allocation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<std::set<Temp>> 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); } } |