aco: preserve kill flag on moved operands during RA

Fixes: 93c8ebfa78 aco: Initial commit of independent AMD compiler

Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
This commit is contained in:
Daniel Schürmann 2019-11-07 16:22:55 +01:00 committed by Rhys Perry
parent a2a6880743
commit b6f5085dfe
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}