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:
committed by
Rhys Perry
parent
a2a6880743
commit
b6f5085dfe
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user