| /llvm-project-15.0.7/llvm/test/Transforms/SampleProfile/ |
| H A D | inline-replay.ll | 4 ; RUN: opt < %s -passes=sample-profile -sample-profile-file=%S/Inputs/inline-topdown.prof -sample-p… 7 …sample-profile -sample-profile-file=%S/Inputs/inline-topdown.prof -sample-profile-inline-replay=%S… 13 …sample-profile -sample-profile-file=%S/Inputs/inline-topdown-missing.prof -sample-profile-inline-r… 22 …sample-profile -sample-profile-file=%S/Inputs/inline-topdown.prof -sample-profile-inline-replay=%S… 26 …sample-profile -sample-profile-file=%S/Inputs/inline-topdown.prof -sample-profile-inline-replay=%S… 29 …sample-profile -sample-profile-file=%S/Inputs/inline-topdown.prof -sample-profile-inline-replay=%S… 32 …sample-profile -sample-profile-file=%S/Inputs/inline-topdown.prof -sample-profile-inline-replay=%S… 35 …sample-profile -sample-profile-file=%S/Inputs/inline-topdown.prof -sample-profile-inline-replay=%S… 38 …sample-profile -sample-profile-file=%S/Inputs/inline-topdown.prof -sample-profile-inline-replay=%S… 58 …sample-profile -sample-profile-file=%S/Inputs/inline-topdown.prof -sample-profile-inline-replay=%S… [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" } 20 ; BAD-FN-HEADER: error: {{.*}}bad_fn_header.prof: Could not open profile: Unrecognized sample profi…
|
| H A D | profile-context-tracker.ll | 11 …sample-profile -sample-profile-file=%S/Inputs/profile-context-tracker.prof -sample-profile-inline-… 12 …-passes=sample-profile -sample-profile-file=%t -sample-profile-inline-size -sample-profile-priorit… 13 …sample-profile -sample-profile-file=%S/Inputs/profile-context-tracker.prof -sample-profile-inline-… 14 …asses=sample-profile -sample-profile-file=%t -sample-profile-inline-size -sample-profile-cold-inli… 22 …sample-profile -sample-profile-file=%S/Inputs/profile-context-tracker.prof -sample-profile-inline-… 23 …ses=sample-profile -sample-profile-file=%t -sample-profile-inline-size -sample-profile-prioritized… 24 …sample-profile -sample-profile-file=%S/Inputs/profile-context-tracker.prof -sample-profile-inline-… 25 …s=sample-profile -sample-profile-file=%t -sample-profile-inline-size -sample-profile-cold-inline-t… 48 ; _Z5funcBi isn't inlined since disable-sample-loader-inlining is true. 55 ; _Z5funcAi is not inlined since `disable-sample-loader-inlining` is true. [all …]
|
| H A D | csspgo-inline-icall.ll | 1 …s -passes=sample-profile -sample-profile-file=%S/Inputs/indirect-call-csspgo.prof -sample-profile-… 2 …s=sample-profile -sample-profile-file=%S/Inputs/indirect-call-csspgo.prof -sample-profile-icp-rela… 3 ; RUN: llvm-profdata merge --sample --extbinary --use-md5 %S/Inputs/indirect-call-csspgo.prof -o %t… 4 …opt < %s -passes=sample-profile -sample-profile-file=%t.md5 -sample-profile-icp-relative-hotness=1… 8 ;; Add two direct call to force top-down order for sample profile loader 39 attributes #0 = {"use-sample-profile"}
|
| 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 ; RUN: opt -S %s -passes=sample-profile -sample-profile-file=%S/Inputs/inline.prof | opt -S -codege… 4 ; RUN: opt -S %s -passes=sample-profile -sample-profile-file=%S/Inputs/inline.prof -profile-sample-… 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 28 ; profile-sample-accurate attribute. 34 attributes #0 = { "profile-sample-accurate" "use-sample-profile" } 35 attributes #1 = { "use-sample-profile" }
|
| H A D | csspgo-inline.ll | 3 ; Note that we need new pass manager to enable top-down processing for sample profile loader 8 …sample-profile -sample-profile-file=%S/Inputs/profile-context-tracker.prof -sample-profile-inline-… 10 ; RUN: llvm-profdata merge --sample --extbinary --use-md5 %S/Inputs/profile-context-tracker.prof -o… 11 …t < %s -passes=sample-profile -sample-profile-file=%t.md5 -sample-profile-inline-size -sample-prof… 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 …sample-profile -sample-profile-file=%S/Inputs/profile-context-tracker.prof -sample-profile-inline-… 27 …sample-profile -sample-profile-file=%S/Inputs/profile-context-tracker.prof -sample-profile-inline-… [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 …-passes=sample-profile -sample-profile-file=%S/Inputs/inline-mergeprof.prof -sample-profile-merge-… 8 ; Test we properly merge not inlined profile with '-sample-profile-merge-inlinee' 10 ; RUN: opt < %s -passes=sample-profile -sample-profile-file=%S/Inputs/inline-mergeprof.md5.prof -sa… 12 …st we properly merge not inlined profile with '--sample-profile-merge-inlinee' even if '--disable-… 13 …t < %s -passes=sample-profile -sample-profile-file=%S/Inputs/inline-mergeprof.md5.prof -sample-pro… 65 attributes #0 = { "use-sample-profile" }
|
| H A D | csspgo-import-list.ll | 2 …hinlto-pre-link<O2>' -pgo-kind=pgo-sample-use-pipeline -sample-profile-file=%S/Inputs/csspgo-impor… 3 ; RUN: llvm-profdata merge --sample --extbinary %S/Inputs/csspgo-import-list.prof -o %t.prof 4 …%s -passes='thinlto-pre-link<O2>' -pgo-kind=pgo-sample-use-pipeline -sample-profile-file=%t.prof -… 5 ; RUN: llvm-profdata show --sample -show-sec-info-only %t.prof | FileCheck %s --check-prefix=CHECK-… 6 ; RUN: llvm-profdata merge --sample --extbinary --use-md5 %S/Inputs/csspgo-import-list.prof -o %t.m… 7 … %s -passes='thinlto-pre-link<O2>' -pgo-kind=pgo-sample-use-pipeline -sample-profile-file=%t.md5 -… 8 ; RUN: llvm-profdata show --sample -show-sec-info-only %t.md5 | FileCheck %s --check-prefix=CHECK-O… 12 …O2>' -pgo-kind=pgo-sample-use-pipeline -sample-profile-file=%S/Inputs/csspgo-import-list.prof -pro… 14 …sample-use-pipeline -sample-profile-file=%S/Inputs/csspgo-import-list.prof -sample-profile-inline-… 16 …sample-use-pipeline -sample-profile-file=%S/Inputs/csspgo-import-list-no-funca.prof -sample-profil… [all …]
|
| H A D | inline-cold-callsite-samplepgo.ll | 1 ; For SamplePGO, if -profile-sample-accurate is specified, cold callsite 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 | 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-… 6 ; RUN: opt < %s -passes=sample-profile -sample-profile-file=%t.symlist.afdo -profile-accurate-for-s… 10 ; -profile-sample-accurate will override -profile-accurate-for-symsinlist. 11 … < %s -passes=sample-profile -sample-profile-file=%S/Inputs/profsampleacc.extbinary.afdo -profile-… 12 … < %s -passes=sample-profile -sample-profile-file=%S/Inputs/profsampleacc.extbinary.afdo -profile-… 33 ; profile-sample-accurate is enabled. 37 ; profile-sample-accurate is enabled because the callsite is warm and not 94 ; profile-sample-accurate is enabled. 101 ; profile-sample-accurate is enabled. [all …]
|
| /llvm-project-15.0.7/polly/lib/External/isl/ |
| H A D | isl_sample.c | 75 if (!sample) in interval_sample() 138 if (!sample || sample->size == 0) in sample_eq() 141 sample = isl_mat_vec_product(T, sample); in sample_eq() 413 sample = isl_vec_ceil(sample); in isl_tab_sample() 512 sample = isl_vec_ceil(sample); in isl_tab_sample() 565 data->sample = sample; in factor_sample() 599 data.sample = isl_vec_free(data.sample); in factored_sample() 673 bset->sample = isl_vec_copy(sample); in sample_bounded() 975 if (!sample || sample->size == 0) { in isl_basic_set_sample_with_cone() 984 sample = vec_concat(sample, cone_sample); in isl_basic_set_sample_with_cone() [all …]
|
| H A D | isl_affine_hull.c | 513 if (bset->sample && bset->sample->size == 1 + dim) { in uset_affine_hull_bounded() 520 sample = isl_vec_copy(bset->sample); in uset_affine_hull_bounded() 543 tab->bmap->sample = isl_vec_copy(sample); in uset_affine_hull_bounded() 655 tab->bmap->sample = isl_vec_copy(sample); in isl_tab_detect_equalities() 771 if (sample && sample->size > 0) in affine_hull_with_cone() 772 sample = isl_mat_vec_product(U, sample); in affine_hull_with_cone() 778 hull->sample = sample; in affine_hull_with_cone() 879 if (sample && sample->size > 0) in equalities_in_underlying_set() 880 sample = isl_mat_vec_product(T1, sample); in equalities_in_underlying_set() 886 hull->sample = sample; in equalities_in_underlying_set() [all …]
|
| H A D | polyhedron_sample.c | 19 struct isl_vec *sample; in main() local 23 sample = isl_basic_set_sample_vec(isl_basic_set_copy(bset)); in main() 25 p = isl_printer_print_vec(p, sample); in main() 28 assert(sample); in main() 29 if (isl_vec_size(sample) > 0) in main() 30 assert(isl_basic_set_contains(bset, sample)); in main() 32 isl_vec_free(sample); in main()
|
| /llvm-project-15.0.7/llvm/test/tools/llvm-profdata/ |
| H A D | sample-hot-func-list.test | 1 ; RUN: llvm-profdata show --sample --hot-func-list %S/Inputs/sample-hot-func-list.proftext | FileCh… 3 ; CHECK:8 out of 10 functions with profile (80.00%) are considered hot functions (max sample >… 5 ; CHECK-NEXT: Total sample (%) Max sample Entry sample Function name 15 ; RUN: llvm-profdata show --sample --hot-func-list %S/Inputs/cs-sample.proftext | FileCheck %s --ma… 17 ; CS:2 out of 8 functions with profile (25.00%) are considered hot functions (max sample >= 23… 19 ; CS-NEXT: Total sample (%) Max sample Entry sample Function name 24 ; RUN: llvm-profdata show --sample --topn=2 %S/Inputs/sample-hot-func-list.proftext | FileCheck %s … 26 ; TOPN:8 out of 10 functions with profile (80.00%) are considered hot functions (max sample >=… 28 ; TOPN-NEXT: Total sample (%) Max sample Entry sample Function name 32 ; RUN: llvm-profdata show --sample --topn=1 %S/Inputs/cs-sample.proftext | FileCheck %s --match-ful… [all …]
|
| H A D | sample-fs.test | 1 Basic tests for sample profiles using fs discriminators. 4 RUN: llvm-profdata show --sample %p/Inputs/sample-fs.proftext -profile-isfs | FileCheck %s --check-… 5 RUN: llvm-profdata show --sample %p/Inputs/sample-fs.proftext -profile-isfs -fs-discriminator-pass=… 39 …fdata merge --sample %p/Inputs/sample-fs.proftext -profile-isfs -fs-discriminator-pass=PassLast --… 40 RUN: llvm-profdata merge --sample %p/Inputs/sample-fs.proftext -profile-isfs --binary -o - | llvm-p… 41 RUN: llvm-profdata show --sample %p/Inputs/sample-fs.proftext -profile-isfs -o %t1-text 46 …rofdata merge --sample %p/Inputs/sample-fs.proftext -profile-isfs -fs-discriminator-pass=Base --bi… 47 RUN: llvm-profdata show --sample %p/Inputs/sample-fs.proftext -profile-isfs -fs-discriminator-pass=… 51 …ofdata merge --sample %p/Inputs/sample-fs.proftext -profile-isfs -fs-discriminator-pass=Pass1 --bi… 52 RUN: llvm-profdata show --sample %p/Inputs/sample-fs.proftext -profile-isfs -fs-discriminator-pass=… [all …]
|
| H A D | weight-sample.test | 1 Tests for weighted merge of sample profiles. 4 … llvm-profdata merge -sample -text -weighted-input=1,%p/Inputs/weight-sample-bar.proftext -weighte… 5 RUN: llvm-profdata merge -sample -text -weighted-input=1,%p/Inputs/weight-sample-bar.proftext %p/In… 24 … llvm-profdata merge -sample -text -weighted-input=3,%p/Inputs/weight-sample-bar.proftext -weighte… 43 …not llvm-profdata merge -sample -weighted-input=3,%p/Inputs/weight-sample-bar.proftext -weighted-i… 44 …t llvm-profdata merge -sample -weighted-input=3,%p/Inputs/weight-sample-bar.proftext -weighted-inp… 45 …ot llvm-profdata merge -sample -weighted-input=3,%p/Inputs/weight-sample-bar.proftext -weighted-in… 46 …not llvm-profdata merge -sample -weighted-input=3,%p/Inputs/weight-sample-bar.proftext -weighted-i… 47 … not llvm-profdata merge -sample -weighted-input=3,%p/Inputs/weight-sample-bar.proftext -weighted-… 51 RUN: not llvm-profdata merge -sample -weighted-input=3,%p/Inputs/does-not-exist.proftext -weighted-… [all …]
|
| H A D | roundtrip.test | 7 RUN: llvm-profdata merge --sample --binary -output=%t.2.profdata %S/Inputs/sample-profile.proftext 8 RUN: llvm-profdata merge --sample --text -output=%t.2.proftext %t.2.profdata 9 RUN: diff -b %t.2.proftext %S/Inputs/sample-profile.proftext 11 RUN: llvm-profdata merge --sample --extbinary -output=%t.3.profdata %S/Inputs/sample-profile.profte… 12 RUN: llvm-profdata merge --sample --text -output=%t.3.proftext %t.3.profdata 13 RUN: diff -b %t.3.proftext %S/Inputs/sample-profile.proftext 15 RUN: llvm-profdata merge --sample --binary -output=%t.4.profdata %S/Inputs/sample-profile.proftext 17 RUN: llvm-profdata merge --sample --text -output=%t.4.proftext %t.5.profdata 18 RUN: diff -b %t.4.proftext %S/Inputs/sample-profile.proftext 22 RUN: llvm-profdata merge --sample --compbinary -output=%t.6.profdata %S/Inputs/sample-profile.proft… [all …]
|
| H A D | compact-sample.proftext | 1 # Make sure "llvm-profdata show" works for sample profile in binary compact format 3 # RUN: llvm-profdata show -sample %S/Inputs/compat-sample.profdata | FileCheck %s 10 # RUN: llvm-profdata show -hot-func-list -sample %S/Inputs/compat-sample.profdata | FileCheck %s --… 12 # HOTFUNC: Total sample (%) Max sample Entry sample Function name 15 # Make sure "llvm-profdata overlap" works for sample profile in binary compact format 16 # RUN: llvm-profdata overlap -sample %S/Inputs/compat-sample.profdata %S/Inputs/compat-sample.profd… 20 # OVERLAP-NEXT: Whole program sample overlap: 100.000%
|
| H A D | sample-profile-basic.test | 1 Basic tests for sample profiles. 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 %… 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 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… 34 RUN: not llvm-profdata show --sample %p/Inputs/foo3bar3-1.proftext 2>&1 | FileCheck %s --check-pref… 35 BADTEXT: error: {{.+}}: Unrecognized sample profile encoding format
|
| H A D | cs-sample-trimmer.test | 1 RUN: llvm-profdata merge --sample --text -output=%t.proftext %S/Inputs/cs-sample.proftext 2 RUN: diff -b %t.proftext %S/Inputs/cs-sample.proftext 4 RUN: llvm-profdata merge --sample --text -output=%t.proftext %S/Inputs/cs-sample.proftext -sample-m… 6 RUN: llvm-profdata merge --sample --text -output=%t.proftext %S/Inputs/cs-sample.proftext -sample-m… 8 RUN: llvm-profdata merge --sample --text -output=%t.proftext %S/Inputs/cs-sample.proftext -sample-m…
|
| H A D | gcc-gcov-sample-profile.test | 4 Tests for sample profiles encoded in GCC's gcov format. 8 RUN: llvm-profdata show --sample %p/Inputs/gcc-sample-profile.gcov | FileCheck %s --check-prefix=SH… 17 RUN: llvm-profdata merge --sample %p/Inputs/gcc-sample-profile.gcov --text -o - | llvm-profdata sho… 18 RUN: llvm-profdata show --sample %p/Inputs/gcc-sample-profile.gcov -o %t-gcov 23 RUN: llvm-profdata merge --sample --text %p/Inputs/gcc-sample-profile.gcov -o %t-gcov 24 RUN: llvm-profdata merge --sample --text %p/Inputs/gcc-sample-profile.gcov %t-gcov -o - | FileCheck…
|
| H A D | sample-overlap.test | 1 ; RUN: llvm-profdata overlap --sample %S/Inputs/sample-overlap-0.proftext %S/Inputs/sample-overlap-… 4 ; OVERLAP0: Whole program sample overlap: 100.000% 22 ; RUN: llvm-profdata overlap --sample %S/Inputs/sample-overlap-0.proftext %S/Inputs/sample-overlap-… 25 ; OVERLAP1: Whole program sample overlap: 10.000% 46 ; OVERLAP2: Whole program sample overlap: 29.649% 71 ; OVERLAP3: Whole program sample overlap: 6.040% 93 ; RUN: llvm-profdata overlap --sample --function=main %S/Inputs/sample-overlap-0.proftext %S/Inputs… 117 ; RUN: llvm-profdata overlap --sample %S/Inputs/sample-overlap-0.proftext %S/Inputs/sample-overlap-… 118 ; OVERLAP5:Sum of sample counts for profile {{.*}}/Inputs/sample-overlap-5.proftext is 0. 121 ; RUN: llvm-profdata overlap --sample %S/Inputs/cs-sample.proftext %S/Inputs/cs-sample.proftext | F… [all …]
|
| H A D | roundtrip-compress.test | 3 RUN: llvm-profdata merge --sample --extbinary -compress-all-sections -output=%t.1.profdata %S/Input… 4 RUN: llvm-profdata merge --sample --text -output=%t.1.proftext %t.1.profdata 5 RUN: diff -b %t.1.proftext %S/Inputs/sample-profile.proftext 7 RUN: llvm-profdata merge --sample --binary -output=%t.2.profdata %S/Inputs/sample-profile.proftext 8 RUN: llvm-profdata merge --sample --extbinary -compress-all-sections -output=%t.3.profdata %t.2.pro… 9 RUN: llvm-profdata merge --sample --text -output=%t.2.proftext %t.3.profdata 10 RUN: diff -b %t.2.proftext %S/Inputs/sample-profile.proftext
|
| H A D | cs-sample-profile.test | 1 RUN: llvm-profdata merge --sample --text -output=%t.proftext %S/Inputs/cs-sample.proftext 2 RUN: diff -b %t.proftext %S/Inputs/cs-sample.proftext 3 RUN: llvm-profdata merge --sample --extbinary %p/Inputs/cs-sample.proftext -o %t.prof && llvm-profd… 4 RUN: diff -b %t1.proftext %S/Inputs/cs-sample.proftext 5 RUN: llvm-profdata show --sample -show-sec-info-only %t.prof | FileCheck %s
|
| /llvm-project-15.0.7/llvm/test/tools/llvm-profgen/ |
| H A D | cs-preinline.test | 6 …n --csspgo-preinliner=1 --gen-cs-nested-profile=0 --sample-profile-hot-inline-threshold=3000 --sam… 10 …n --csspgo-preinliner=1 --gen-cs-nested-profile=0 --sample-profile-hot-inline-threshold=3000 --sam… 19 …/inline-cs-noprobe.perfbin --csspgo-preinliner=1 --sample-profile-hot-inline-threshold=3000 --sam… 23 …n --csspgo-preinliner=1 --gen-cs-nested-profile=0 --sample-profile-hot-inline-threshold=3000 --sam… 24 ; RUN: llvm-profdata show --sample -show-sec-info-only %t2.prof | FileCheck %s -check-prefix=CHECK-… 25 …/inline-cs-noprobe.perfbin --csspgo-preinliner=1 --sample-profile-hot-inline-threshold=3000 --sam… 26 ; RUN: llvm-profdata show --sample -show-sec-info-only %t5.prof | FileCheck %s -check-prefix=CHECK-… 29 ; RUN: llvm-profdata merge --sample %t2 -o %t2.prof --extbinary 30 ; RUN: llvm-profdata show --sample -show-sec-info-only %t2.prof | FileCheck %s -check-prefix=CHECK-… 31 ; RUN: llvm-profdata merge --sample %t5 -o %t5.prof --extbinary [all …]
|