From 7f19298bfa908aa7b7862840f9acda8627133cdb Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Tue, 16 Aug 2016 20:28:06 +0000 Subject: [PATCH] AMDGPU: Remove excessive padding from ImmOp and RegOp. The structs ImmOp and RegOp are in AArch64AsmParser.cpp (inside anonymous namespace). This diff changes the order of fields and removes the excessive padding (8 bytes). Patch by Alexander Shaposhnikov llvm-svn: 278844 --- llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp b/llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp index efcf1b23adaa..703c9358d707 100644 --- a/llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp +++ b/llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp @@ -136,18 +136,18 @@ public: }; struct ImmOp { - bool IsFPImm; - ImmTy Type; int64_t Val; + ImmTy Type; + bool IsFPImm; Modifiers Mods; }; struct RegOp { - unsigned RegNo; - Modifiers Mods; const MCRegisterInfo *TRI; const MCSubtargetInfo *STI; + unsigned RegNo; bool IsForcedVOP3; + Modifiers Mods; }; union {