[all-commits] [llvm/llvm-project] dbefcd: Merge all the llvm-exegesis unit tests into a sing...

Tom Stellard via All-commits all-commits at lists.llvm.org
Mon Jul 26 22:08:09 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: dbefcde6da1b58eb181dcbd8d7913175b2ec8350
      https://github.com/llvm/llvm-project/commit/dbefcde6da1b58eb181dcbd8d7913175b2ec8350
  Author: Tom Stellard <tstellar at redhat.com>
  Date:   2021-07-26 (Mon, 26 Jul 2021)

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

  Log Message:
  -----------
  Merge all the llvm-exegesis unit tests into a single binary

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.

Reviewed By: courbet

Differential Revision: https://reviews.llvm.org/D106464




More information about the All-commits mailing list