[PATCH] D142216: [MC] Store number of implicit operands in MCInstrDesc. NFC.

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 20 07:41:49 PST 2023


arsenm accepted this revision.
arsenm added inline comments.
This revision is now accepted and ready to land.
Herald added a subscriber: wdng.


================
Comment at: llvm/include/llvm/MC/MCInstrDesc.h:209
+  unsigned char NumImplicitDefs; // Num of regs implicitly defined
   uint64_t Flags;                // Flags identifying machine instr class
   uint64_t TSFlags;              // Target Specific Flag values
----------------
foad wrote:
> arsenm wrote:
> > Could these be reordered to avoid the alignment padding?
> You could avoid some internal padding but I don't think you could make the struct any smaller overall.
> 
> I didn't worry too much about the exact layout of this struct until the end of the whole stack of patches.
Probably could force the 64-bit fields to 4-byte alignment and see how compile time benchmarks look


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D142216/new/

https://reviews.llvm.org/D142216



More information about the llvm-commits mailing list