aco: shrink mad_info
authorRhys Perry <pendingchaos02@gmail.com>
Mon, 1 Jun 2020 15:19:56 +0000 (16:19 +0100)
committerMarge Bot <eric+marge@anholt.net>
Thu, 18 Jun 2020 14:26:01 +0000 (14:26 +0000)
From 24 bytes to 16 bytes.

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 8fa769a43ec2f36d760c853d457d173cf4257a81..5427f6fbc1240e29a347d4f8bcc8981d73c5369d 100644 (file)
@@ -52,7 +52,7 @@ namespace aco {
 struct mad_info {
    aco_ptr<Instruction> add_instr;
    uint32_t mul_temp_id;
-   uint32_t literal_idx;
+   uint16_t literal_idx;
    bool check_literal;
 
    mad_info(aco_ptr<Instruction> instr, uint32_t id)