Mesa (master): aco: preserve kill flag on moved operands during RA

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Nov 12 16:41:36 UTC 2019


Module: Mesa
Branch: master
Commit: b6f5085dfee81d9c54fcda883d2b06742134084a
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b6f5085dfee81d9c54fcda883d2b06742134084a

Author: Daniel Schürmann <daniel at schuermann.dev>
Date:   Thu Nov  7 16:22:55 2019 +0100

aco: preserve kill flag on moved operands during RA

Fixes: 93c8ebfa780ebd1495095e794731881aef29e7d3 aco: Initial commit of independent AMD compiler

Reviewed-by: Rhys Perry <pendingchaos02 at gmail.com>

---

 src/amd/compiler/aco_register_allocation.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/amd/compiler/aco_register_allocation.cpp b/src/amd/compiler/aco_register_allocation.cpp
index 3b4100cddd2..c90c91a0325 100644
--- a/src/amd/compiler/aco_register_allocation.cpp
+++ b/src/amd/compiler/aco_register_allocation.cpp
@@ -1422,7 +1422,7 @@ void register_allocation(Program *program, std::vector<std::set<Temp>> live_out_
                      for (unsigned j = 0; j < i; j++) {
                         Operand& op = instr->operands[j];
                         if (op.isTemp() && op.tempId() == blocking_id) {
-                           op = Operand(pc_def.getTemp());
+                           op.setTemp(pc_def.getTemp());
                            op.setFixed(reg);
                         }
                      }




More information about the mesa-commit mailing list