[PATCH] D146303: [llvm-exegesis] Prevent llvm-exegesis from using unsupported opcodes

Pavel Kosov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 29 06:51:24 PDT 2023


kpdev42 added a comment.

In D146303#4223120 <https://reviews.llvm.org/D146303#4223120>, @courbet wrote:

> In principle I like that, however this has implications on the size of the various llvm binaries. Can you please measure the increase in binary size for e.g. `clang` ?

Sure. Built with the following cmake cache

  set(CMAKE_C_COMPILER   /usr/bin/clang   CACHE STRING "")
  set(CMAKE_CXX_COMPILER /usr/bin/clang++ CACHE STRING "")
  set(LLVM_PARALLEL_LINK_JOBS 6 CACHE STRING "")
  set(LLVM_CCACHE_BUILD  ON CACHE BOOL "")
  
  set(CMAKE_BUILD_TYPE       Release CACHE STRING "")
  set(LLVM_ENABLE_ASSERTIONS OFF     CACHE BOOL "")
  
  set(LLVM_ENABLE_PROJECTS  "clang;lld" CACHE STRING "")
  set(LLVM_TARGETS_TO_BUILD "all" CACHE STRING "")

Host compiler is

  $ /usr/bin/clang --version
  Ubuntu clang version 15.0.6
  Target: x86_64-pc-linux-gnu
  Thread model: posix
  InstalledDir: /usr/bin

Size of bin/clang-17 increases by about 150 kilobytes mostly because of the .rodata section.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D146303



More information about the llvm-commits mailing list