Mesa (staging/19.3): aco: preserve kill flag on moved operands during RA

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Nov 13 18:33:33 UTC 2019


Module: Mesa
Branch: staging/19.3
Commit: 9629ce096dd5bba79f7c43eb7a8d9583bb9a1c79
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=9629ce096dd5bba79f7c43eb7a8d9583bb9a1c79

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>
(cherry picked from commit b6f5085dfee81d9c54fcda883d2b06742134084a)

---

 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