mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 04:20:08 +01:00
aco: remove unnecessary reg_file.fill() operation in get_reg_create_vector()
No pipelinedb changes Reviewed-by: Rhys Perry <pendingchaos02@gmail.com> Reviewed-By: Timur Kristóf <timur.kristof@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4002>
This commit is contained in:
parent
7de003473c
commit
90811554da
1 changed files with 5 additions and 6 deletions
|
|
@ -837,12 +837,11 @@ PhysReg get_reg_create_vector(ra_ctx& ctx,
|
|||
|
||||
/* move killed operands which aren't yet at the correct position */
|
||||
for (unsigned i = 0, offset = 0; i < instr->operands.size(); offset += instr->operands[i].size(), i++) {
|
||||
if (instr->operands[i].isTemp() && instr->operands[i].isFirstKillBeforeDef() && instr->operands[i].getTemp().type() == rc.type()) {
|
||||
if (instr->operands[i].physReg() != best_pos + offset)
|
||||
vars.emplace(instr->operands[i].size(), instr->operands[i].tempId());
|
||||
else
|
||||
reg_file.fill(instr->operands[i]);
|
||||
}
|
||||
if (instr->operands[i].isTemp() &&
|
||||
instr->operands[i].isFirstKillBeforeDef() &&
|
||||
instr->operands[i].getTemp().type() == rc.type() &&
|
||||
instr->operands[i].physReg() != best_pos + offset)
|
||||
vars.emplace(instr->operands[i].size(), instr->operands[i].tempId());
|
||||
}
|
||||
|
||||
ASSERTED bool success = false;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue