aco: fix should_form_clause() for memory instructions without operands

In particular, this applies to s_memtime and s_memrealtime.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25676>
This commit is contained in:
Daniel Schürmann 2023-10-30 16:19:20 +01:00 committed by Marge Bot
parent 568f61787a
commit 8f16745821

View file

@ -1308,6 +1308,9 @@ should_form_clause(const Instruction* a, const Instruction* b)
if (a->format != b->format)
return false;
if (a->operands.empty() || b->operands.empty())
return false;
/* Assume loads which don't use descriptors might load from similar addresses. */
if (a->isFlatLike())
return true;