llvm-project/compiler-rt/test
Ellis Hoag 18ffb5dc25 [InstrProf] Prevent duplicate functions in correlated data
When using debug info for profile correlation, avoid adding duplicate
functions in the synthetic Data section.

Before this patch, n duplicate function entries in the Data section would
cause counter values to be a factor of n larger. I built instrumented
clang with and without debug info correlation and got these summaries.

```
# With Debug Info Correlate
$ llvm-profdata show default.profdata
Instrumentation level: IR  entry_first = 0
Total functions: 182530
Maximum function count: 52034
Maximum internal block count: 5763

# Without
$ llvm-profdata show default.profdata
Instrumentation level: IR  entry_first = 0
Total functions: 183212
Maximum function count: 52034
Maximum internal block count: 5766
```

The slight difference in counts seem to be mostly from FileSystem and
Map functions and the difference in the number of instrumented functions
seems to come from missing debug info like destructors without source.

Reviewed By: kyulee

Differential Revision: https://reviews.llvm.org/D116051
2021-12-28 14:20:59 -08:00
..
BlocksRuntime [compiler-rt] NFC: Fix trivial typo 2021-09-04 14:12:58 +05:30
asan Attempt to stablize compiler-rt/test/asan/TestCases/strncpy-overflow.cpp 2021-12-20 17:51:11 -08:00
builtins [VE] Disable incompatible compiler-rt tests 2021-11-12 08:40:03 +01:00
cfi [compiler-rt] -fsanitize=cfi is not supported on Darwin 2021-03-17 13:28:42 -07:00
crt [CRT][LIT] split target_cflags using shlex 2021-08-19 21:44:20 -04:00
dfsan [DFSan] Make dfsan_read_origin_of_first_taint public. 2021-12-22 23:45:30 -08:00
fuzzer [libFuzzer] Remove entropic-scale-per-exec-time.test. 2021-12-09 12:20:06 -08:00
gwp_asan [compiler-rt][GWP-ASAN] Disable 2 tests on Armv7 Linux 2021-07-19 10:45:11 +00:00
hwasan [sanitizers] include build ids in stacks on linux. 2021-12-10 14:24:03 -08:00
interception
lsan [lsan] Deflake fork_and_leak test 2021-12-02 18:06:04 -08:00
memprof [memprof][NFC] Fix mismatched-new-delete in memprof tests 2021-12-20 18:43:21 -08:00
msan [NFC][sanitizer] Add test for command line flag for enable-noundef-analysis. 2021-12-03 15:44:36 -08:00
orc [llvm-jitlink] Update handling of library options. 2021-12-15 13:49:30 +11:00
profile [InstrProf] Prevent duplicate functions in correlated data 2021-12-28 14:20:59 -08:00
safestack
sanitizer_common [sanitizer] Add common "demangle" flag 2021-12-23 14:36:39 -08:00
scudo Revert "[Scudo] Make -fsanitize=scudo use standalone. Migrate tests." 2021-05-26 10:50:26 -07:00
shadowcallstack
tsan [TSan] Don't instrument code that is executed from __tsan_on_report() 2021-12-21 17:02:51 -08:00
ubsan Fix file extension of alignment-assumption-ignorelist.cppp test 2021-11-30 17:21:46 +01:00
ubsan_minimal [test] Fix unused FileCheck prefixes in compiler-rt 2021-02-01 22:32:13 -08:00
xray Fix xray fdr mode to allow multiple flushes 2021-02-10 12:57:24 +11:00
.clang-format [tests][sanitizers] Don't reflow comments 2021-08-03 12:54:00 -07:00
.clang-tidy [NFC][compiler-rt] Refine .clang-tidy checks 2020-09-05 15:42:15 -07:00
CMakeLists.txt [ORC-RT] Add target dependencies to ORC-RT regression tests. 2021-09-28 22:08:47 -07:00
lit.common.cfg.py [msan] Disabled test failing on new GLIBC 2021-11-15 11:18:52 -08:00
lit.common.configured.in [compiler-rt][test] Add shared_unwind requirement 2021-10-06 11:10:36 -07:00