aco: add export instructions to should_form_clause

fossil-db (gfx1150):
Totals from 1 (0.00% of 79395) affected shaders:
Instrs: 906 -> 901 (-0.55%)
CodeSize: 4692 -> 4672 (-0.43%)
Latency: 1582 -> 1561 (-1.33%)

fossil-db (navi21):
Totals from 9917 (12.49% of 79395) affected shaders:
Instrs: 6120530 -> 6116252 (-0.07%)
CodeSize: 31808916 -> 31791804 (-0.05%)
Latency: 23854892 -> 23866438 (+0.05%); split: -0.01%, +0.06%
InvThroughput: 4655278 -> 4655490 (+0.00%); split: -0.00%, +0.01%

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/30241>
This commit is contained in:
Rhys Perry 2024-07-17 17:22:18 +01:00 committed by Marge Bot
parent 3b732340ec
commit 08a4853ffd

View file

@ -1346,6 +1346,9 @@ should_form_clause(const Instruction* a, const Instruction* b)
if (a->isVMEM() || a->isSMEM())
return a->operands[0].tempId() == b->operands[0].tempId();
if (a->isEXP() && b->isEXP())
return true;
return false;
}