| /llvm-project/llvm/test/Transforms/SampleProfile/ |
| H A D | inline-replay.ll | 1 ;; Note that this needs new pass manager for now. Passing `-sample-profile-inline-replay` to legacy… 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… 10 …UN: opt < %s -passes=sample-profile -sample-profile-file=%S/Inputs/inline-topdown-missing.prof -sa… 13 …sample-profile -sample-profile-file=%S/Inputs/inline-topdown-missing.prof -sample-profile-inline-r… 16 …-passes=sample-profile -sample-profile-file=%S/Inputs/inline-topdown.prof -profile-summary-hot-cou… 19 …sample-profile -sample-profile-file=%S/Inputs/inline-topdown.prof -profile-summary-hot-count=50000… 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… [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 | 4 ; RUN: llvm-profdata merge --sample --extbinary %S/Inputs/profile-context-tracker.prof -o %t 6 ; Note that we need new pass manager to enable top-down processing for sample profile loader 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… 20 ; Test the functions won't be inlined as a result of sampled profile if `disable-sample-loader-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-… [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 | 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… 13 ; RUN: llvm-profdata merge --sample --text --convert-sample-profile-layout=nest %S/Inputs/profile-… 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-… 23 …t is used to drive inlining instead of callee total samples, tuning cold sample profile inline thr… [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 | section-accurate-samplepgo.ll | 2 ; RUN: opt -S %s -passes=sample-profile -sample-profile-file=%S/Inputs/inline.prof | opt -S -passes… 3 ; RUN: opt -S %s -passes=sample-profile -sample-profile-file=%S/Inputs/inline.prof | opt -S -passes… 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-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 …2>' -pgo-kind=pgo-sample-use-pipeline -sample-profile-file=%S/Inputs/csspgo-import-list.prof -prof… 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" }
|
| /llvm-project/polly/lib/External/isl/ |
| H A D | isl_sample.c | 46 struct isl_vec *sample; in zero_sample() local 51 sample = isl_vec_alloc(bset->ctx, 1 + dim); in zero_sample() 52 if (sample) { in zero_sample() 53 isl_int_set_si(sample->el[0], 1); in zero_sample() 54 isl_seq_clr(sample->el + 1, dim); in zero_sample() 57 return sample; in zero_sample() 67 struct isl_vec *sample; in interval_sample() local 77 sample = isl_vec_alloc(bset->ctx, 2); in interval_sample() 78 if (!sample) in interval_sample() 82 isl_int_set_si(sample->block.data[0], 1); in interval_sample() [all …]
|
| H A D | isl_affine_hull.c | 270 struct isl_vec *sample = NULL; in outside_point() local 279 sample = isl_vec_alloc(ctx, 1 + dim); in outside_point() 280 if (!sample) in outside_point() 282 isl_int_set_si(sample->el[0], 1); in outside_point() 283 isl_seq_combine(sample->el + 1, in outside_point() 284 ctx->one, tab->bmap->sample->el + 1, in outside_point() 286 if (isl_basic_map_contains(tab->bmap, sample)) in outside_point() 287 return sample; in outside_point() 288 isl_vec_free(sample); in outside_point() 289 sample = NULL; in outside_point() [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/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=… 17 RUN: llvm-profdata show --sample %p/Inputs/sample-fs.proftext -profile-isfs -fs-discriminator-pass=… 27 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=… [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 | 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 | 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 16 RUN: llvm-profdata merge --sample --extbinary -output=%t.5.profdata %t.4.profdata 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
|
| 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-flatten-profile.test | 1 ; RUN: llvm-profdata merge --sample --convert-sample-profile-layout=flat --text %S/Inputs/sample-fl… 2 …-profdata merge --sample --extbinary %S/Inputs/sample-flatten-profile.proftext -o %t2 && llvm-prof… 4 ; RUN: llvm-profdata merge --sample --convert-sample-profile-layout=flat --text %S/Inputs/sample-fl… 5 …profdata merge --sample --extbinary %S/Inputs/sample-flatten-profile-cs.proftext -o %t2 && llvm-pr…
|
| 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% 43 ; RUN: llvm-profdata overlap --sample --similarity-cutoff=800000 %S/Inputs/sample-overlap-0.proftex… 46 ; OVERLAP2: Whole program sample overlap: 29.649% 68 ; RUN: llvm-profdata overlap --sample --value-cutoff=1000 %S/Inputs/sample-overlap-0.proftext %S/In… 71 ; OVERLAP3: Whole program sample overlap: 6.040% 93 ; RUN: llvm-profdata overlap --sample --function=main %S/Inputs/sample-overlap-0.proftext %S/Inputs… 96 ; OVERLAP4: Whole program sample overlap: 8.134% [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
|
| H A D | profile-symbol-list.test | 1 ; RUN: llvm-profdata merge -sample -extbinary -prof-sym-list=%S/Inputs/profile-symbol-list-1.text %… 2 ; RUN: llvm-profdata merge -sample -extbinary -prof-sym-list=%S/Inputs/profile-symbol-list-2.text %… 3 ; RUN: llvm-profdata merge -sample -extbinary %t.1.output %t.2.output -o %t.3.output 4 ; RUN: llvm-profdata show -sample -show-prof-sym-list %t.3.output > %t.4.output 6 ; RUN: llvm-profdata merge -sample -extbinary --drop-profile-symbol-list %t.1.output %t.2.output -o… 7 ; RUN: llvm-profdata show -sample -show-sec-info-only %t.5.output | FileCheck %s -check-prefix=NOS…
|
| /llvm-project/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… 14 …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-… [all …]
|