llvm-project/compiler-rt/test/profile
Vedant Kumar 381e9d2386 [Coverage] Ignore 'unused' functions with non-zero execution counts
Frontends emit 'unused' coverage mapping records for functions which are
provably unused in a TU. These unused records contain a single counter
with CounterKind::Zero. However, a function may be unused in one TU and
used in another. When this happens, prefer the records with a full set
of counters instead of arbitrarily picking the first loaded record.

There is no impact on the single-TU case. In the multiple-TU case, this
resolves issues causing a function to appear unused when it's not.

Testing: check-{llvm,clang,compiler-rt}

rdar://42981322

llvm-svn: 339194
2018-08-07 22:25:36 +00:00
..
Inputs [gcov] Add test which uses fork 2018-08-01 09:11:36 +00:00
Linux [profile] Move newly added test to the supported platform 2018-04-02 21:24:07 +00:00
Posix [gcov] Add test which uses fork 2018-08-01 09:11:36 +00:00
CMakeLists.txt [sanitizer] Add macOS minimum deployment target to all compiler invocations in lit tests 2016-11-29 19:25:53 +00:00
gcc-flag-compatibility.test [Profile] More test clean up to read profile from directory specified by -fprofile-generate= 2016-07-21 02:14:55 +00:00
infinite_loop.c [PGO] Test case changes for D41059 2017-12-18 17:56:42 +00:00
instrprof-basic.c [Profile] Add new test 2016-07-22 23:38:58 +00:00
instrprof-bufferio.c [profile] Eliminate dynamic memory allocation for buffered writer 2016-05-13 18:26:26 +00:00
instrprof-darwin-dead-strip.c [profile] Test the exported symbol set for empty programs 2018-02-28 19:00:16 +00:00
instrprof-darwin-exports.c [Darwin] Add an integration test for PGO + symbol exports 2018-06-28 17:53:43 +00:00
instrprof-dlopen-dlclose-gcov.test Remove ppc64 BE XFAILs now that gcov profiling works, after starting a clean 2018-07-11 19:17:43 +00:00
instrprof-dlopen.test
instrprof-dump.c [Profile] Implement new API __llvm_profile_dump 2016-08-09 04:21:14 +00:00
instrprof-dynamic-one-shared.test
instrprof-dynamic-two-shared.test
instrprof-error.c [profile] PROF_ERR, PROF_WARN 2016-05-20 05:15:42 +00:00
instrprof-gcov-__gcov_flush-terminate.test Add a test with __gcov_flush called before terminating the program. 2018-07-16 09:13:46 +00:00
instrprof-gcov-exceptions.test [gcov] Add a test showing differences in line counts when building with or without exceptions enabled. 2018-07-16 14:40:33 +00:00
instrprof-gcov-multiple-bbs-single-line.test Add a test with multiple BBs on the same line 2018-07-13 13:01:43 +00:00
instrprof-gcov-switch.test [gcov] Add tests using switch, one with break clauses and one with fallthrough 2018-07-31 23:26:50 +00:00
instrprof-gcov-two-objects.test Remove ppc64 BE XFAILs now that gcov profiling works, after starting a clean 2018-07-11 19:17:43 +00:00
instrprof-get-filename.c [profile] Add interface to get profile filename 2018-07-19 19:03:50 +00:00
instrprof-hostname.c fix a test bug when executed remotedly 2016-06-24 17:42:51 +00:00
instrprof-icall-promo.test [Profile] Test cleanup -- use new lit var for IR PGO tests /NFC 2016-07-19 22:12:00 +00:00
instrprof-merge-match.test [PGO] Add API to check compatibility of profile data in buffer 2016-03-04 18:58:30 +00:00
instrprof-merge.c [PGO] Add API for profile merge from buffer 2016-03-03 18:54:46 +00:00
instrprof-merging.cpp [Coverage] Ignore 'unused' functions with non-zero execution counts 2018-08-07 22:25:36 +00:00
instrprof-override-filename-then-reset-default.c [Profile] deprecate __llvm_profile_override_default_filename (part2) 2016-07-21 23:19:18 +00:00
instrprof-override-filename-with-env.c [Profile] deprecate __llvm_profile_override_default_filename (part2) 2016-07-21 23:19:18 +00:00
instrprof-override-filename.c [profile] Move __llvm_profile_filename into a separate object 2017-06-29 17:42:24 +00:00
instrprof-path.c [profile] Fix typo in test 2018-07-19 20:18:37 +00:00
instrprof-reset-counters.c Add space inside the regular expression. 2018-02-08 02:29:56 +00:00
instrprof-set-dir-mode.c [compiler-rt] Add a routine to specify the mode used when creating profile dirs. 2018-07-31 23:37:24 +00:00
instrprof-set-filename-shared.test [profile] Mark lprofCurFilename as COMPILER_RT_WEAK 2016-10-18 00:02:28 +00:00
instrprof-set-filename-then-reset-default.c
instrprof-set-filename.c [libprofile] Define an expansion `%clang_profgen=` 2016-06-12 04:17:57 +00:00
instrprof-shared-gcov-flush.test Remove ppc64 BE XFAILs now that gcov profiling works, after starting a clean 2018-07-11 19:17:43 +00:00
instrprof-shared.test Fix comment of test 2016-01-12 03:57:14 +00:00
instrprof-value-prof-2.c [PGO] Fix the buildbots for r266229. 2016-04-13 20:02:07 +00:00
instrprof-value-prof-evict.test [Profile] Test cleanup -- use new lit var for IR PGO tests /NFC 2016-07-19 22:12:00 +00:00
instrprof-value-prof-reset.c [Profile] Fix value profiler eviction bug 2016-11-29 22:00:54 +00:00
instrprof-value-prof-shared.test Fix buildbot failure 2016-07-23 03:34:30 +00:00
instrprof-value-prof.c [profile] Static counter allocation for value profiling (part-2) 2016-05-21 22:55:45 +00:00
instrprof-value-prof.test [Profile] Test cleanup -- use new lit var for IR PGO tests /NFC 2016-07-19 22:12:00 +00:00
instrprof-version-mismatch.c [profile] PROF_ERR, PROF_WARN 2016-05-20 05:15:42 +00:00
instrprof-visibility-kinds.inc [profile] Add integration test to validate PGO function names 2016-03-25 23:56:23 +00:00
instrprof-visibility.cpp [FileCheck] Add -allow-deprecated-dag-overlap to failing compiler-rt tests 2018-07-11 20:26:44 +00:00
instrprof-without-libc.c [libprofile] Make this test a bit more specific 2016-03-28 19:25:19 +00:00
instrprof-write-file-atexit-explicitly.c
instrprof-write-file-only.c [libprofile] Adjust dummy condition to be more forgiving. 2016-03-26 04:01:57 +00:00
instrprof-write-file.c
lit.cfg [profile] Port the runtime to Solaris (retry) 2017-12-14 19:01:04 +00:00
lit.site.cfg.in Replace hardcoded comment at 'lit.site.cfg.in' 2016-04-16 07:03:45 +00:00
runtime_infinite.c [PGO] Test case changes for D41059 2017-12-18 17:56:42 +00:00