[PATCH] D145023: [memprof] Refactor tests to generate binaries and profiles on the fly.
Snehasish Kumar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 28 17:43:33 PST 2023
snehasish created this revision.
snehasish added a reviewer: tejohnson.
Herald added a subscriber: Enna1.
Herald added a project: All.
snehasish requested review of this revision.
Herald added projects: Sanitizers, LLVM.
Herald added subscribers: llvm-commits, Sanitizers.
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`.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D145023
Files:
compiler-rt/test/memprof/CMakeLists.txt
compiler-rt/test/memprof/TestCases/memprof_basic.c
compiler-rt/test/memprof/TestCases/memprof_inline.c
compiler-rt/test/memprof/TestCases/memprof_merge.c
compiler-rt/test/memprof/TestCases/memprof_multi.c
compiler-rt/test/memprof/TestCases/memprof_pic.c
compiler-rt/test/memprof/lit.cfg.py
llvm/test/tools/llvm-profdata/Inputs/basic.memprofexe
llvm/test/tools/llvm-profdata/Inputs/basic.memprofraw
llvm/test/tools/llvm-profdata/Inputs/inline.memprofexe
llvm/test/tools/llvm-profdata/Inputs/inline.memprofraw
llvm/test/tools/llvm-profdata/Inputs/memprof-inline.exe
llvm/test/tools/llvm-profdata/Inputs/multi.memprofexe
llvm/test/tools/llvm-profdata/Inputs/multi.memprofraw
llvm/test/tools/llvm-profdata/Inputs/pic.memprofexe
llvm/test/tools/llvm-profdata/Inputs/pic.memprofraw
llvm/test/tools/llvm-profdata/memprof-basic.test
llvm/test/tools/llvm-profdata/memprof-inline.test
llvm/test/tools/llvm-profdata/memprof-merge.test
llvm/test/tools/llvm-profdata/memprof-multi.test
llvm/test/tools/llvm-profdata/memprof-pic.test
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D145023.501348.patch
Type: text/x-patch
Size: 33861 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230301/ddb0080d/attachment.bin>
More information about the llvm-commits
mailing list