From ffebe480133479be58eb6057f08bec893cd999f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Sch=C3=BCrmann?= Date: Tue, 23 Feb 2021 15:07:43 +0100 Subject: [PATCH] aco: don't rematerialize exec Since exec is not considered a temporary anymore, we accidentally allowed to rematerialize it. Fixes: a56ddca4e80a6ef7bb0c44edb4e5b6169510aaca ('aco: make all exec accesses non-temporaries') Closes: #4327 Reviewed-by: Rhys Perry Part-of: --- src/amd/compiler/aco_spill.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/compiler/aco_spill.cpp b/src/amd/compiler/aco_spill.cpp index 22967abb472..e10fb96fd19 100644 --- a/src/amd/compiler/aco_spill.cpp +++ b/src/amd/compiler/aco_spill.cpp @@ -250,7 +250,7 @@ bool should_rematerialize(aco_ptr& instr) for (const Operand& op : instr->operands) { /* TODO: rematerialization using temporaries isn't yet supported */ - if (op.isTemp()) + if (!op.isConstant()) return false; }