mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-01 16:10:09 +01:00
aco/optimizer: set VCC hint on new v_cmp_* definitions
Totals from 11692 (7.99% of 146267) affected shaders (Navi10): CodeSize: 97419384 -> 97352560 (-0.07%); split: -0.07%, +0.00% Instrs: 18571138 -> 18570969 (-0.00%); split: -0.00%, +0.00% Cycles: 1431348400 -> 1431346296 (-0.00%); split: -0.00%, +0.00% SMEM: 696646 -> 696650 (+0.00%) SClause: 668511 -> 668490 (-0.00%); split: -0.00%, +0.00% Copies: 1279475 -> 1279474 (-0.00%) Reviewed-by: Timur Kristóf <timur.kristof@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9531>
This commit is contained in:
parent
8ab6d2b4c4
commit
fc3606f29c
1 changed files with 4 additions and 0 deletions
|
|
@ -1759,6 +1759,7 @@ bool combine_ordering_test(opt_ctx &ctx, aco_ptr<Instruction>& instr)
|
|||
new_instr = static_cast<Instruction *>(vop3);
|
||||
} else {
|
||||
new_instr = create_instruction<VOPC_instruction>(new_op, Format::VOPC, 2, 1);
|
||||
instr->definitions[0].setHint(vcc);
|
||||
}
|
||||
new_instr->operands[0] = Operand(op[0]);
|
||||
new_instr->operands[1] = Operand(op[1]);
|
||||
|
|
@ -1831,6 +1832,7 @@ bool combine_comparison_ordering(opt_ctx &ctx, aco_ptr<Instruction>& instr)
|
|||
new_instr = new_vop3;
|
||||
} else {
|
||||
new_instr = create_instruction<VOPC_instruction>(new_op, Format::VOPC, 2, 1);
|
||||
instr->definitions[0].setHint(vcc);
|
||||
}
|
||||
new_instr->operands[0] = cmp->operands[0];
|
||||
new_instr->operands[1] = cmp->operands[1];
|
||||
|
|
@ -1950,6 +1952,7 @@ bool combine_constant_comparison_ordering(opt_ctx &ctx, aco_ptr<Instruction>& in
|
|||
new_instr = new_vop3;
|
||||
} else {
|
||||
new_instr = create_instruction<VOPC_instruction>(new_op, Format::VOPC, 2, 1);
|
||||
instr->definitions[0].setHint(vcc);
|
||||
}
|
||||
new_instr->operands[0] = cmp->operands[0];
|
||||
new_instr->operands[1] = cmp->operands[1];
|
||||
|
|
@ -2011,6 +2014,7 @@ bool combine_inverse_comparison(opt_ctx &ctx, aco_ptr<Instruction>& instr)
|
|||
new_instr = new_sdwa;
|
||||
} else {
|
||||
new_instr = create_instruction<VOPC_instruction>(new_opcode, Format::VOPC, 2, 1);
|
||||
instr->definitions[0].setHint(vcc);
|
||||
}
|
||||
new_instr->operands[0] = cmp->operands[0];
|
||||
new_instr->operands[1] = cmp->operands[1];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue