[PATCH] D106464: Merge all the llvm-exegesis unit tests into a single binary

Tom Stellard via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 21 10:33:54 PDT 2021


tstellar created this revision.
tstellar added reviewers: lebedev.ri, courbet.
Herald added subscribers: mstojanovic, atanasyan, jrtc27, mgorny, nemanjai, sdardis.
tstellar requested review of this revision.
Herald added a project: LLVM.

These tests access private symbols in the backends, so they cannot link
against libLLVM.so and must be statically linked.  Linking these tests
can be slow and with debug builds the resulting binaries use a lot of
disk space.

By merging them into a single test binary means we now only need to
statically link 1 test instead of 6, which helps reduce the build
times and saves disk space.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D106464

Files:
  llvm/tools/llvm-exegesis/lib/BenchmarkResult.cpp
  llvm/tools/llvm-exegesis/lib/BenchmarkResult.h
  llvm/unittests/tools/llvm-exegesis/AArch64/CMakeLists.txt
  llvm/unittests/tools/llvm-exegesis/ARM/CMakeLists.txt
  llvm/unittests/tools/llvm-exegesis/CMakeLists.txt
  llvm/unittests/tools/llvm-exegesis/Mips/BenchmarkResultTest.cpp
  llvm/unittests/tools/llvm-exegesis/Mips/CMakeLists.txt
  llvm/unittests/tools/llvm-exegesis/Mips/RegisterAliasingTest.cpp
  llvm/unittests/tools/llvm-exegesis/Mips/SnippetGeneratorTest.cpp
  llvm/unittests/tools/llvm-exegesis/PowerPC/AnalysisTest.cpp
  llvm/unittests/tools/llvm-exegesis/PowerPC/CMakeLists.txt
  llvm/unittests/tools/llvm-exegesis/PowerPC/SnippetGeneratorTest.cpp
  llvm/unittests/tools/llvm-exegesis/X86/BenchmarkResultTest.cpp
  llvm/unittests/tools/llvm-exegesis/X86/CMakeLists.txt
  llvm/unittests/tools/llvm-exegesis/X86/RegisterAliasingTest.cpp
  llvm/unittests/tools/llvm-exegesis/X86/SchedClassResolutionTest.cpp
  llvm/unittests/tools/llvm-exegesis/X86/SnippetGeneratorTest.cpp
  llvm/unittests/tools/llvm-exegesis/X86/TargetTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D106464.360512.patch
Type: text/x-patch
Size: 37234 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210721/4a347e76/attachment.bin>


More information about the llvm-commits mailing list