[all-commits] [llvm/llvm-project] f719c5: [X86][Disassembler] Shrink X86GenDisassemblerTable...

Fangrui Song via All-commits all-commits at lists.llvm.org
Sat Jan 11 17:30:33 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: f719c540bb09cb5bfe37bc6283ea68e31949b3f4
      https://github.com/llvm/llvm-project/commit/f719c540bb09cb5bfe37bc6283ea68e31949b3f4
  Author: Fangrui Song <maskray at google.com>
  Date:   2020-01-11 (Sat, 11 Jan 2020)

  Changed paths:
    M llvm/utils/TableGen/X86DisassemblerTables.cpp

  Log Message:
  -----------
  [X86][Disassembler] Shrink X86GenDisassemblerTables.inc from 36M to 6.1M

In x86Disassembler{OneByte,TwoByte,...}Codes,
"/* EmptyTable */" is very common. Omitting it saves lots of space.
Also, there is no need to display a table entry in multiple lines.

It is also common that the whole OpcodeDecision is { MODRM_ONEENTRY, 0}.
Make use of zero-initialization.




More information about the All-commits mailing list