summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-profdata/Inputs
diff options
context:
space:
mode:
authorRong Xu <xur@google.com>2019-01-07 23:25:56 +0000
committerRong Xu <xur@google.com>2019-01-07 23:25:56 +0000
commit6f366c3a040e3bdc6756d455b0b82996cd5822ef (patch)
tree8866195a9e78c6ed87df325942ad8544e2286073 /llvm/test/tools/llvm-profdata/Inputs
parentbf1fdb852f936ca7c8493c063d6f14ae552fb86f (diff)
downloadbcm5719-llvm-6f366c3a040e3bdc6756d455b0b82996cd5822ef.tar.gz
bcm5719-llvm-6f366c3a040e3bdc6756d455b0b82996cd5822ef.zip
[PGO] Use SourceFileName rather module name in PGOFuncName
In LTO or Thin-lto mode (though linker plugin), the module names are of temp file names which are different for different compilations. Using SourceFileName avoids the issue. This should not change any functionality for current PGO as all the current callers of getPGOFuncName() is before LTO. llvm-svn: 350579
Diffstat (limited to 'llvm/test/tools/llvm-profdata/Inputs')
-rw-r--r--llvm/test/tools/llvm-profdata/Inputs/cutoff.proftext21
1 files changed, 21 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-profdata/Inputs/cutoff.proftext b/llvm/test/tools/llvm-profdata/Inputs/cutoff.proftext
new file mode 100644
index 00000000000..1ce4843f54f
--- /dev/null
+++ b/llvm/test/tools/llvm-profdata/Inputs/cutoff.proftext
@@ -0,0 +1,21 @@
+# IR level Instrumentation Flag
+:ir
+bar
+10
+2
+0
+0
+
+main
+16650
+4
+1
+1000
+1000000
+499500
+
+foo
+10
+2
+999
+1
OpenPOWER on IntegriCloud