[all-commits] [llvm/llvm-project] 599b76: [memprof] Refactor tests to generate binaries and ...
Snehasish Kumar via All-commits
all-commits at lists.llvm.org
Mon Mar 6 13:24:53 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 599b7690fa917ea4e9cd67275e34d0b5a0f51aa9
https://github.com/llvm/llvm-project/commit/599b7690fa917ea4e9cd67275e34d0b5a0f51aa9
Author: Snehasish Kumar <snehasishk at google.com>
Date: 2023-03-06 (Mon, 06 Mar 2023)
Changed paths:
M compiler-rt/test/memprof/CMakeLists.txt
A compiler-rt/test/memprof/TestCases/memprof_basic.c
A compiler-rt/test/memprof/TestCases/memprof_inline.c
A compiler-rt/test/memprof/TestCases/memprof_merge.c
A compiler-rt/test/memprof/TestCases/memprof_multi.c
A compiler-rt/test/memprof/TestCases/memprof_pic.c
M compiler-rt/test/memprof/lit.cfg.py
R llvm/test/tools/llvm-profdata/Inputs/basic.memprofexe
R llvm/test/tools/llvm-profdata/Inputs/basic.memprofraw
R llvm/test/tools/llvm-profdata/Inputs/inline.memprofexe
R llvm/test/tools/llvm-profdata/Inputs/inline.memprofraw
R llvm/test/tools/llvm-profdata/Inputs/memprof-inline.exe
R llvm/test/tools/llvm-profdata/Inputs/multi.memprofexe
R llvm/test/tools/llvm-profdata/Inputs/multi.memprofraw
R llvm/test/tools/llvm-profdata/Inputs/pic.memprofexe
R llvm/test/tools/llvm-profdata/Inputs/pic.memprofraw
R llvm/test/tools/llvm-profdata/memprof-basic.test
R llvm/test/tools/llvm-profdata/memprof-inline.test
R llvm/test/tools/llvm-profdata/memprof-merge.test
R llvm/test/tools/llvm-profdata/memprof-multi.test
R llvm/test/tools/llvm-profdata/memprof-pic.test
Log Message:
-----------
[memprof] Refactor tests to generate binaries and profiles on the fly.
This change replaces the binary profiles and executables used for
testing the memprof profile reader with tests where the profiles are
generated on the fly. This reduces toil when the profile version
changes. The tests are moved from tools/llvm-profdata to
compiler-rt/test/memprof due to the following reasons:
1. Adding dependency on memprof lit.cfg.py for llvm-profdata is
preferable to adding a dependency on compiler-rt for llvm/test.
2. All the tests can now be run with `ninja check-memprof`.
Reviewed By: tejohnson
Differential Revision: https://reviews.llvm.org/D145023
More information about the All-commits
mailing list