[all-commits] [llvm/llvm-project] b3ef5f: [Option] Shrink Info from 40 to 24 bytes (#224807)

Fangrui Song via All-commits all-commits at lists.llvm.org
Sat Sep 19 00:00:15 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b3ef5fedd9920cf1c678f4da5743a6714d078f87
      https://github.com/llvm/llvm-project/commit/b3ef5fedd9920cf1c678f4da5743a6714d078f87
  Author: Fangrui Song <i at maskray.me>
  Date:   2026-09-18 (Fri, 18 Sep 2026)

  Changed paths:
    M llvm/include/llvm/Option/OptTable.h
    M llvm/include/llvm/Option/Option.h
    M llvm/lib/Option/OptTable.cpp
    M llvm/utils/TableGen/OptionParserEmitter.cpp

  Log Message:
  -----------
  [Option] Shrink Info from 40 to 24 bytes (#224807)

Few options set MetaVar, AliasArgs, Values, help text variants, or
subcommands (12%, 4%, 4%, 0.1%, 0.06% of 6955 options), yet every entry
carries all five. Move them to a deduplicated InfoExtra side table
reached by a 16-bit offset; row 0 serves options that set none. Narrow
Visibility to 16 bits; clang uses seven.

clang's table shrinks from 155 KB to 93 KB plus 4 KB of extras.

Aided by Opus 5



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list