aco: remove rollback code around parallelcopy creation
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com> Reviewed-by: Daniel Schürmann <daniel@schuermann.dev> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7656>
This commit is contained in:
@@ -2271,26 +2271,17 @@ void register_allocation(Program *program, std::vector<IDSet>& live_out_per_bloc
|
|||||||
|
|
||||||
if (temp_in_scc && sgpr_operands_alias_defs) {
|
if (temp_in_scc && sgpr_operands_alias_defs) {
|
||||||
/* disable definitions and re-enable operands */
|
/* disable definitions and re-enable operands */
|
||||||
|
RegisterFile tmp_file(register_file);
|
||||||
for (const Definition& def : instr->definitions) {
|
for (const Definition& def : instr->definitions) {
|
||||||
if (def.isTemp() && !def.isKill())
|
if (def.isTemp() && !def.isKill())
|
||||||
register_file.clear(def);
|
tmp_file.clear(def);
|
||||||
}
|
}
|
||||||
for (const Operand& op : instr->operands) {
|
for (const Operand& op : instr->operands) {
|
||||||
if (op.isTemp() && op.isFirstKill())
|
if (op.isTemp() && op.isFirstKill())
|
||||||
register_file.block(op.physReg(), op.regClass());
|
tmp_file.block(op.physReg(), op.regClass());
|
||||||
}
|
}
|
||||||
|
|
||||||
handle_pseudo(ctx, register_file, pc.get());
|
handle_pseudo(ctx, tmp_file, pc.get());
|
||||||
|
|
||||||
/* re-enable live vars */
|
|
||||||
for (const Operand& op : instr->operands) {
|
|
||||||
if (op.isTemp() && op.isFirstKill())
|
|
||||||
register_file.clear(op);
|
|
||||||
}
|
|
||||||
for (const Definition& def : instr->definitions) {
|
|
||||||
if (def.isTemp() && !def.isKill())
|
|
||||||
register_file.fill(def);
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
pc->tmp_in_scc = false;
|
pc->tmp_in_scc = false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user