Mesa (master): aco: shrink ssa_info

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Jun 18 14:37:08 UTC 2020


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

Author: Rhys Perry <pendingchaos02 at gmail.com>
Date:   Mon Jun  1 16:13:09 2020 +0100

aco: shrink ssa_info

Reorder members so that it's 16 bytes instead of 24.

Signed-off-by: Rhys Perry <pendingchaos02 at gmail.com>
Reviewed-by: Daniel Schürmann <daniel at schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5281>

---

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

diff --git a/src/amd/compiler/aco_optimizer.cpp b/src/amd/compiler/aco_optimizer.cpp
index 1e2d4841891..87d4b4ae67c 100644
--- a/src/amd/compiler/aco_optimizer.cpp
+++ b/src/amd/compiler/aco_optimizer.cpp
@@ -102,11 +102,11 @@ static constexpr uint32_t val_labels = label_constant_32bit | label_constant_64b
 
 struct ssa_info {
    uint32_t val;
+   uint32_t label;
    union {
       Temp temp;
       Instruction* instr;
    };
-   uint32_t label;
 
    ssa_info() : label(0) {}
 



More information about the mesa-commit mailing list