aco: shrink ssa_info
authorRhys Perry <pendingchaos02@gmail.com>
Mon, 1 Jun 2020 15:13:09 +0000 (16:13 +0100)
committerMarge Bot <eric+marge@anholt.net>
Thu, 18 Jun 2020 14:26:01 +0000 (14:26 +0000)
Reorder members so that it's 16 bytes instead of 24.

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

src/amd/compiler/aco_optimizer.cpp

index 1e2d4841891b0db15d105f212e75fd69762c846f..87d4b4ae67c2a0f5fcae20f7b5363cbcc376fb57 100644 (file)
@@ -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) {}