aco: include flat-like in vmem clause statistics
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/17079>
This commit is contained in:
parent
08ed6ebc55
commit
5898afba53
|
@ -447,7 +447,8 @@ collect_preasm_stats(Program* program)
|
|||
if (instr->opcode == aco_opcode::p_constaddr)
|
||||
program->statistics[statistic_instructions] += 2;
|
||||
|
||||
if (instr->isVMEM() && !instr->operands.empty()) {
|
||||
if ((instr->isVMEM() || instr->isScratch() || instr->isGlobal()) &&
|
||||
!instr->operands.empty()) {
|
||||
if (std::none_of(vmem_clause.begin(), vmem_clause.end(),
|
||||
[&](Instruction* other)
|
||||
{ return should_form_clause(instr.get(), other); }))
|
||||
|
|
Loading…
Reference in New Issue