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; }