[PATCH] D139882: [NFC][MC] `MCInst`: `Operands` small size optimization: store 10, not 8, inline `MCOperand`

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 13 10:22:04 PST 2022


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGc499e7a8a74e: [NFC][MC] `MCInst`: `Operands` small size optimization: store 10, not 8, inlineā€¦ (authored by lebedev.ri).

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D139882

Files:
  llvm/include/llvm/MC/MCInst.h


Index: llvm/include/llvm/MC/MCInst.h
===================================================================
--- llvm/include/llvm/MC/MCInst.h
+++ llvm/include/llvm/MC/MCInst.h
@@ -189,7 +189,7 @@
   unsigned Flags = 0;
 
   SMLoc Loc;
-  SmallVector<MCOperand, 8> Operands;
+  SmallVector<MCOperand, 10> Operands;
 
 public:
   MCInst() = default;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D139882.482546.patch
Type: text/x-patch
Size: 345 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221213/1fdcf664/attachment.bin>


More information about the llvm-commits mailing list