| /llvm-project-15.0.7/llvm/test/tools/llvm-profdata/ |
| H A D | sample-overlap.test | 3 ; OVERLAP0: Whole program profile similarity: 100.000% 7 ; OVERLAP0: total samples in base profile: 13943 8 ; OVERLAP0: total samples in test profile: 13943 11 ; OVERLAP0: functions unique in base profile: 0 12 ; OVERLAP0: functions unique in test profile: 0 127 ; CS: total samples in base profile: 772562 128 ; CS: total samples in test profile: 772562 131 ; CS: functions unique in base profile: 0 132 ; CS: functions unique in test profile: 0 139 ; CS: hot blocks unique in base profile: 0 [all …]
|
| H A D | overlap_vp.test | 8 OVERLAP: Edge profile overlap: 80.000% 9 OVERLAP: Edge profile base count sum: 100000 10 OVERLAP: Edge profile test count sum: 50000 11 OVERLAP: IndirectCall profile overlap: 80.000% 12 OVERLAP: IndirectCall profile base count sum: 100000 13 OVERLAP: IndirectCall profile test count sum: 50000 14 OVERLAP: MemOP profile overlap: 80.000% 15 OVERLAP: MemOP profile base count sum: 100000 16 OVERLAP: MemOP profile test count sum: 5000
|
| H A D | text-format-errors.test | 1 Tests for instrumentation profile bad encoding. 5 …COUNT-LATER-SHOW: error: {{.*}}invalid-count-later.proftext: malformed instrumentation profile data 11 INVALID-COUNT-LATER-MERGE-NEXT: error: no profile can be merged 15 BAD-HASH-SHOW: error: {{.*}}bad-hash.proftext: malformed instrumentation profile data 18 BAD-HASH-MERGE: warning: {{.*}}bad-hash.proftext: malformed instrumentation profile data 23 NO-COUNTS: error: {{.*}}no-counts.proftext: malformed instrumentation profile data 27 BINARY: error: {{.+}}: unrecognized instrumentation profile encoding format 30 5- Detect malformed value profile data 33 VP: error: {{.+}}: malformed instrumentation profile data 35 6- Detect truncated value profile data [all …]
|
| H A D | sample-profile-basic.test | 4 RUN: llvm-profdata show --sample %p/Inputs/sample-profile.proftext | FileCheck %s --check-prefix=SH… 12 RUN: llvm-profdata show --sample --function=_Z3bari %p/Inputs/sample-profile.proftext | FileCheck %… 18 3- Convert the profile to binary encoding and check that they are both 20 RUN: llvm-profdata merge --sample %p/Inputs/sample-profile.proftext --binary -o - | llvm-profdata s… 21 RUN: llvm-profdata show --sample %p/Inputs/sample-profile.proftext -o %t-text 24 4- Merge the binary and text encodings of the profile and check that the 26 RUN: llvm-profdata merge --sample %p/Inputs/sample-profile.proftext -o %t-binprof 27 RUN: llvm-profdata merge --sample --text %p/Inputs/sample-profile.proftext %t-binprof -o - | FileCh… 33 5- Detect invalid text encoding (e.g. instrumentation profile text format). 35 BADTEXT: error: {{.+}}: Unrecognized sample profile encoding format
|
| /llvm-project-15.0.7/llvm/test/Transforms/SampleProfile/ |
| H A D | inline-replay.ll | 4 …opt < %s -passes=sample-profile -sample-profile-file=%S/Inputs/inline-topdown.prof -sample-profile… 7 …profile -sample-profile-file=%S/Inputs/inline-topdown.prof -sample-profile-inline-replay=%S/Inputs… 13 …profile -sample-profile-file=%S/Inputs/inline-topdown-missing.prof -sample-profile-inline-replay=%… 16 …sample-profile -sample-profile-file=%S/Inputs/inline-topdown.prof -profile-summary-hot-count=50000… 19 …profile -sample-profile-file=%S/Inputs/inline-topdown.prof -profile-summary-hot-count=500000 -samp… 22 …profile -sample-profile-file=%S/Inputs/inline-topdown.prof -sample-profile-inline-replay=%S/Inputs… 26 …profile -sample-profile-file=%S/Inputs/inline-topdown.prof -sample-profile-inline-replay=%S/Inputs… 29 …profile -sample-profile-file=%S/Inputs/inline-topdown.prof -sample-profile-inline-replay=%S/Inputs… 32 …profile -sample-profile-file=%S/Inputs/inline-topdown.prof -sample-profile-inline-replay=%S/Inputs… 35 …profile -sample-profile-file=%S/Inputs/inline-topdown.prof -sample-profile-inline-replay=%S/Inputs… [all …]
|
| H A D | syntax.ll | 2 ; RUN: opt < %s -passes=sample-profile -sample-profile-file=%S/Inputs/syntax.prof 2>&1 | FileCheck … 3 ; RUN: not opt < %s -passes=sample-profile -sample-profile-file=missing.prof 2>&1 | FileCheck -chec… 4 ; RUN: not opt < %s -passes=sample-profile -sample-profile-file=%S/Inputs/bad_fn_header.prof 2>&1 |… 5 ; RUN: not opt < %s -passes=sample-profile -sample-profile-file=%S/Inputs/bad_sample_line.prof 2>&1… 6 ; RUN: not opt < %s -passes=sample-profile -sample-profile-file=%S/Inputs/bad_line_values.prof 2>&1… 7 ; RUN: not opt < %s -passes=sample-profile -sample-profile-file=%S/Inputs/bad_discriminator_value.p… 8 ; RUN: not opt < %s -passes=sample-profile -sample-profile-file=%S/Inputs/bad_samples.prof 2>&1 | F… 9 ; RUN: opt < %s -passes=sample-profile -sample-profile-file=%S/Inputs/bad_mangle.prof 2>&1 >/dev/nu… 16 attributes #0 = { "use-sample-profile" } 19 ; MISSING-FILE: missing.prof: Could not open profile: [all …]
|
| H A D | profile-sample-accurate.ll | 1 … < %s -passes=sample-profile -sample-profile-file=%S/Inputs/profsampleacc.extbinary.afdo -profile-… 2 … < %s -passes=sample-profile -sample-profile-file=%S/Inputs/profsampleacc.extbinary.afdo -profile-… 5 ; RUN: opt < %s -passes=sample-profile -sample-profile-file=%t.symlist.afdo -profile-summary-cutoff… 6 ; RUN: opt < %s -passes=sample-profile -sample-profile-file=%t.symlist.afdo -profile-accurate-for-s… 7 ; RUN: opt < %s -passes=sample-profile -sample-profile-file=%t.symlist.afdo -profile-accurate-for-s… 9 ; If -profile-accurate-for-symsinlist and -profile-sample-accurate both present, 10 ; -profile-sample-accurate will override -profile-accurate-for-symsinlist. 11 …=sample-profile -sample-profile-file=%S/Inputs/profsampleacc.extbinary.afdo -profile-summary-cutof… 12 …=sample-profile -sample-profile-file=%S/Inputs/profsampleacc.extbinary.afdo -profile-summary-cutof… 43 ; profile symbol list because it also shows up in the profile as inline [all …]
|
| H A D | section-accurate-samplepgo.ll | 2 ; RUN: opt -S %s -passes=sample-profile -sample-profile-file=%S/Inputs/inline.prof | opt -S -codege… 3 …sses=sample-profile -sample-profile-file=%S/Inputs/inline.prof | opt -S -codegenprepare -profile-u… 4 ; RUN: opt -S %s -passes=sample-profile -sample-profile-file=%S/Inputs/inline.prof -profile-sample-… 8 ; The test checks that function without profile gets unlikely section prefix 9 ; if -profile-sample-accurate is specified or the function has the 10 ; profile-sample-accurate attribute. 18 ; The function not appearing in profile is cold when -profile-sample-accurate 27 ; The function not appearing in profile is cold when the func has 28 ; profile-sample-accurate attribute. 34 attributes #0 = { "profile-sample-accurate" "use-sample-profile" } [all …]
|
| H A D | csspgo-inline.ll | 3 ; Note that we need new pass manager to enable top-down processing for sample profile loader 8 …ample-profile -sample-profile-file=%S/Inputs/profile-context-tracker.prof -sample-profile-inline-s… 11 …t < %s -passes=sample-profile -sample-profile-file=%t.md5 -sample-profile-inline-size -sample-prof… 13 ; RUN: llvm-profdata merge --sample --text --gen-cs-nested-profile %S/Inputs/profile-context-tracke… 14 … < %s -passes=sample-profile -sample-profile-file=%t.prof -sample-profile-inline-size -sample-prof… 17 …opt < %s -passes=sample-profile -sample-profile-file=%S/Inputs/profile-context-tracker.prof -sampl… 18 …t < %s -passes=sample-profile -sample-profile-file=%t.prof -sample-profile-prioritized-inline -sam… 21 …sample-profile -sample-profile-file=%S/Inputs/profile-context-tracker.prof -sample-profile-inline-… 24 …le-profile -sample-profile-file=%S/Inputs/profile-context-tracker.prof -sample-profile-inline-size… 27 …profile -sample-profile-file=%S/Inputs/profile-context-tracker.prof -sample-profile-inline-size -p… [all …]
|
| H A D | profile-context-tracker.ll | 11 …profile -sample-profile-file=%S/Inputs/profile-context-tracker.prof -sample-profile-inline-size -s… 12 …=sample-profile -sample-profile-file=%t -sample-profile-inline-size -sample-profile-prioritized-in… 13 …profile -sample-profile-file=%S/Inputs/profile-context-tracker.prof -sample-profile-inline-size -s… 14 …mple-profile -sample-profile-file=%t -sample-profile-inline-size -sample-profile-cold-inline-thres… 22 …ample-profile -sample-profile-file=%S/Inputs/profile-context-tracker.prof -sample-profile-inline-s… 23 …opt < %s -passes=sample-profile -sample-profile-file=%t -sample-profile-inline-size -sample-profil… 24 …le-profile -sample-profile-file=%S/Inputs/profile-context-tracker.prof -sample-profile-inline-size… 25 … < %s -passes=sample-profile -sample-profile-file=%t -sample-profile-inline-size -sample-profile-c… 73 ; (merged and promoted) context profile 85 ; inlined, so outline remainder should have empty profile [all …]
|
| H A D | inline-mergeprof.ll | 1 ; Test we lose details of not inlined profile without '-sample-profile-merge-inlinee' 2 ; RUN: opt < %s -passes=sample-profile -sample-profile-file=%S/Inputs/inline-mergeprof.prof -sample… 4 ; Test we properly merge not inlined profile with '-sample-profile-merge-inlinee' 5 ; RUN: opt < %s -passes=sample-profile -sample-profile-file=%S/Inputs/inline-mergeprof.prof -sample… 6 …sample-profile -sample-profile-file=%S/Inputs/inline-mergeprof.prof -sample-profile-merge-inlinee=… 8 ; Test we properly merge not inlined profile with '-sample-profile-merge-inlinee' 9 ; when the profile uses md5. 10 ; RUN: opt < %s -passes=sample-profile -sample-profile-file=%S/Inputs/inline-mergeprof.md5.prof -sa… 12 ; Test we properly merge not inlined profile with '--sample-profile-merge-inlinee' even if '--disab… 13 ; RUN: opt < %s -passes=sample-profile -sample-profile-file=%S/Inputs/inline-mergeprof.md5.prof -sa… [all …]
|
| H A D | csspgo-inline-icall.ll | 1 …es=sample-profile -sample-profile-file=%S/Inputs/indirect-call-csspgo.prof -sample-profile-icp-rel… 2 …e-profile -sample-profile-file=%S/Inputs/indirect-call-csspgo.prof -sample-profile-icp-relative-ho… 4 … -passes=sample-profile -sample-profile-file=%t.md5 -sample-profile-icp-relative-hotness=1 -pass-… 8 ;; Add two direct call to force top-down order for sample profile loader 39 attributes #0 = {"use-sample-profile"}
|
| H A D | inline-cold-callsite-samplepgo.ll | 1 ; For SamplePGO, if -profile-sample-accurate is specified, cold callsite 2 ; heuristics should be honored if the caller has no profile. 4 ; RUN: opt -S %s -passes='sample-profile,cgscc(inline)' -sample-profile-file=%S/Inputs/inline.prof … 5 ; RUN: opt -S %s -passes='sample-profile,cgscc(inline)' -sample-profile-file=%S/Inputs/inline.prof … 31 attributes #0 = { "profile-sample-accurate" "use-sample-profile" } 32 attributes #1 = { "use-sample-profile" }
|
| H A D | uncompressed-profile-symbol-list.ll | 1 ; Append inline.prof with profile symbol list and save it without compression. 2 ; RUN: llvm-profdata merge --sample --prof-sym-list=%S/Inputs/profile-symbol-list.text --compress-a… 3 …uts/profile-symbol-list.ll -passes=sample-profile -profile-accurate-for-symsinlist -sample-profile…
|
| H A D | profile-context-tracker-debug.ll | 10 … < %s -passes=sample-profile -sample-profile-file=%S/Inputs/profile-context-tracker.prof -sample-p… 11 … -passes=sample-profile -sample-profile-file=%S/Inputs/profile-context-tracker.prof -sample-profil… 14 …lined the following in top-down order and promot rest not inlined context profile into base profile 19 ; INLINE-ALL-NEXT: Merging context profile into base profile: main 33 ; INLINE-ALL-DAG-NEXT: Merging context profile into base profile: _Z5funcAi 35 ; INLINE-ALL-DAG-NEXT: Merging context profile into base profile: _Z5funcBi 49 ; INLINE-ALL-NEXT: Merging context profile into base profile: _Z8funcLeafi 55 ; INLINE-HOT-NEXT: Merging context profile into base profile: main 63 ; INLINE-HOT-DAG-NEXT: Merging context profile into base profile: _Z5funcAi 73 ; INLINE-HOT-DAG-NEXT: Merging context profile into base profile: _Z5funcBi [all …]
|
| H A D | compressed-profile-symbol-list.ll | 2 ; Append inline.prof with profile symbol list and save it after compression. 3 ; RUN: llvm-profdata merge --sample --prof-sym-list=%S/Inputs/profile-symbol-list.text --compress-a… 4 …uts/profile-symbol-list.ll -passes=sample-profile -profile-accurate-for-symsinlist -sample-profile…
|
| H A D | profile-inference-noprobes.ll | 1 ; RUN: opt < %s -passes=sample-profile -sample-profile-use-profi -sample-profile-file=%S/Inputs/pro… 2 ; RUN: opt < %s -passes=sample-profile -sample-profile-use-profi -sample-profile-file=%S/Inputs/pro… 5 ; The test verifies that profile inference can be applied for non-probe-based 41 attributes #0 = { noinline nounwind uwtable "use-sample-profile"}
|
| H A D | profile-format.ll | 1 ; RUN: opt < %s -passes=sample-profile -sample-profile-file=%S/Inputs/inline.prof -S | FileCheck %s 2 ; RUN: opt < %s -passes=sample-profile -sample-profile-file=%S/Inputs/inline.compactbinary.afdo -S … 3 ; RUN: opt < %s -passes=sample-profile -sample-profile-file=%S/Inputs/inline.extbinary.afdo -S | Fi… 4 ; RUN: opt < %s -passes=sample-profile -sample-profile-file=%S/Inputs/inline.md5extbinary.afdo -S |… 5 ; RUN: opt < %s -passes=sample-profile -sample-profile-file=%S/Inputs/inline.fixlenmd5.extbinary.af… 6 ; RUN: not opt < %s -passes=sample-profile -sample-profile-file=%S/Inputs/bad.extbinary.afdo -S 2>&… 26 ; Check sample-profile phase using compactbinary or extbinary format profile 37 ; Check sample-profile phase will report error when it is reading a bad profile. 38 ; BAD-PROFILE: error: {{.*}}bad.extbinary.afdo: profile reading failed: Malformed sample profile da… 98 attributes #0 = { "use-sample-profile" }
|
| H A D | pseudo-probe-inline.ll | 1 …pseudo-probe,sample-profile -sample-profile-file=%S/Inputs/pseudo-probe-inline.prof -S -pass-rema… 5 …pt < %s -passes=pseudo-probe,sample-profile -sample-profile-file=%t2 -S -pass-remarks=sample-prof… 8 …profile -annotate-sample-profile-inline-phase=true -sample-profile-file=%S/Inputs/pseudo-probe-inl… 11 …o-probe,sample-profile -annotate-sample-profile-inline-phase=true -sample-profile-file=%t2 -S -pas… 83 ;YAML-NO-ANNOTATE-NEXT: Pass: sample-profile-inline 84 ;YAML-ANNOTATE-NEXT: Pass: main-sample-profile-inline 112 ;YAML-NEXT: Pass: sample-profile 119 ;YAML-NEXT: - String: ' samples from profile (ProbeId=' 128 ;YAML-NEXT: Pass: sample-profile 144 ;YAML-NEXT: Pass: sample-profile [all …]
|
| H A D | csspgo-import-list.ll | 2 …>' -pgo-kind=pgo-sample-use-pipeline -sample-profile-file=%S/Inputs/csspgo-import-list.prof -sampl… 4 …o-pre-link<O2>' -pgo-kind=pgo-sample-use-pipeline -sample-profile-file=%t.prof -sample-profile-eve… 7 …to-pre-link<O2>' -pgo-kind=pgo-sample-use-pipeline -sample-profile-file=%t.md5 -sample-profile-eve… 12 …-sample-use-pipeline -sample-profile-file=%S/Inputs/csspgo-import-list.prof -profile-summary-hot-c… 14 …profile-file=%S/Inputs/csspgo-import-list.prof -sample-profile-inline-replay=%S/Inputs/csspgo-impo… 15 ;; With replay but no profile information for call to _Z5funcAi. We import _Z5funcAi because it's e… 16 …profile-file=%S/Inputs/csspgo-import-list-no-funca.prof -sample-profile-inline-replay=%S/Inputs/cs… 59 …fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" "use-sample-profile" }
|
| /llvm-project-15.0.7/llvm/docs/CommandGuide/ |
| H A D | llvm-profdata.rst | 41 indexed profile data file. 83 profile to the symbol names that should be used in the output profile. The 92 Specify that the input profile is an instrumentation-based profile. 96 Specify that the input profile is a sample-based profile. 102 Emit the profile using a binary encoding. For instrumentation-based profile 160 Mark the profile to be a partial profile which only provides partial profile 166 Supplement an instrumentation profile with sample profile. The sample profile 186 profile. 267 Specify that the input profile is an instrumentation-based profile. 284 Specify that the input profile is a sample-based profile. [all …]
|
| /llvm-project-15.0.7/llvm/test/tools/llvm-profgen/ |
| H A D | cs-preinline.test | 5 ; Test llvm-profgen with preinliner on will merge not inlinable profile into base profile. 6 …bin --csspgo-preinliner=1 --gen-cs-nested-profile=0 --sample-profile-hot-inline-threshold=3000 --s… 9 …t preinliner threshold that prevents all possible inlining and merges everything into base profile. 10 …bin --csspgo-preinliner=1 --gen-cs-nested-profile=0 --sample-profile-hot-inline-threshold=3000 --s… 13 ; Test cold profile trimming. Only base profiles should be dropped. 14 …nested-profile=0 --sample-profile-hot-inline-threshold=3000 --sample-profile-cold-inline-threshold… 18 ; Test llvm-profgen with preinliner on will merge not inlinable profile into base profile. 19 …einliner=1 --sample-profile-hot-inline-threshold=3000 --sample-profile-cold-inline-threshold=45 --… 23 …bin --csspgo-preinliner=1 --gen-cs-nested-profile=0 --sample-profile-hot-inline-threshold=3000 --s… 25 …nliner=1 --sample-profile-hot-inline-threshold=3000 --sample-profile-cold-inline-threshold=45 --ou… [all …]
|
| H A D | cs-preinline-sample-profile.test | 2 …ry=%S/Inputs/inline-cs-noprobe.perfbin --csspgo-preinliner=0 --gen-cs-nested-profile=0 --output=%t1 4 ; Test llvm-profgen with preinliner on will merge not inlinable profile into base profile. 5 …profile=%t1 --binary=%S/Inputs/inline-cs-noprobe.perfbin --csspgo-preinliner=1 --gen-cs-nested-pro… 9 …S/Inputs/inline-cs-pseudoprobe.perfbin --csspgo-preinliner=0 --gen-cs-nested-profile=0 --output=%t3 11 ; Test llvm-profgen with preinliner on will merge not inlinable profile into base profile. 12 …profile=%t3 --binary=%S/Inputs/inline-cs-pseudoprobe.perfbin --csspgo-preinliner=1 --gen-cs-nested…
|
| /llvm-project-15.0.7/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
| H A D | SymbolManager.h | 56 profile.AddPointer(R); in Profile() 60 Profile(profile, R); in Profile() 115 profile.AddPointer(S); in Profile() 116 profile.AddPointer(LCtx); in Profile() 117 profile.Add(T); in Profile() 161 profile.AddPointer(r); in Profile() 198 profile.AddPointer(R); in Profile() 202 Profile(profile, R); in Profile() 259 profile.AddPointer(R); in Profile() 260 profile.AddPointer(S); in Profile() [all …]
|
| /llvm-project-15.0.7/llvm/test/tools/llvm-readobj/ELF/ |
| H A D | call-graph-profile.test | 31 - Name: .llvm.call-graph-profile 37 - Name: .rel.llvm.call-graph-profile 39 Info: .llvm.call-graph-profile 95 - Name: .llvm.call-graph-profile 103 Info: .llvm.call-graph-profile 151 - Name: .llvm.call-graph-profile 182 - Name: .llvm.call-graph-profile 189 Info: .llvm.call-graph-profile 231 - Name: .llvm.call-graph-profile 238 Info: .llvm.call-graph-profile [all …]
|