| /llvm-project-15.0.7/llvm/test/Transforms/Inline/ |
| H A D | inline-cost-attributes.ll | 5 declare void @extern() "call-threshold-bonus"="31" 12 define void @fn2() "function-inline-threshold"="41" { 15 ; INLINER-NEXT: NOT Inlining (cost=321, threshold=123), Call: call void @fn1() 19 ; INLINER-NEXT: Inlining (cost=197, threshold=321), Call: call void @fn1() 23 ; COST-NEXT: threshold delta = 31 25 ; COST-NEXT: cost delta = 132, threshold delta = 193 27 ; COST-NEXT: cost delta = 132, threshold delta = 193 31 ; COST-NEXT: cost delta = 271, threshold delta = 17 38 call void @fn1() "call-inline-cost"="132" "call-threshold-bonus"="193" 40 call void @fn1() "call-inline-cost"="0" "function-inline-threshold"="321" [all …]
|
| H A D | optimization-remarks-yaml.ll | 11 ; RUN: -pass-remarks-output=%t.threshold 2>&1 | \ 13 ; RUN: test ! -s %t.threshold 16 ; RUN: -pass-remarks-output=%t.threshold 18 ; RUN: test ! -s %t.threshold 31 ; RUN: -pass-remarks-output=%t.threshold 2>&1 | \ 33 ; RUN: test ! -s %t.threshold 36 ; RUN: -pass-remarks-output=%t.threshold 49 ; RUN: -pass-remarks-output=%t.threshold 2>&1 | \ 51 ; RUN: test ! -s %t.threshold 54 ; RUN: -pass-remarks-output=%t.threshold [all …]
|
| H A D | debuginline-cost-delta.ll | 5 ; CHECK-NEXT: cost before = {{.*}}, cost after = {{.*}}, threshold before = {{.*}}, threshold after… 7 ; CHECK-NEXT: cost before = {{.*}}, cost after = {{.*}}, threshold before = {{.*}}, threshold after… 9 ; CHECK-NEXT: cost before = {{.*}}, cost after = {{.*}}, threshold before = {{.*}}, threshold after… 11 ; CHECK-NEXT: cost before = {{.*}}, cost after = {{.*}}, threshold before = {{.*}}, threshold after…
|
| H A D | inline-cold.ll | 1 ; RUN: opt < %s -inline -S -inlinecold-threshold=25 -enable-new-pm=0 | FileCheck %s 2 ; RUN: opt < %s -passes='require<profile-summary>,cgscc(inline)' -S -inlinecold-threshold=25 | File… 6 ; RUN: opt < %s -inline -S -inline-threshold=600 -enable-new-pm=0 | FileCheck %s -check-prefix=OVER… 7 ; RUN: opt < %s -passes='require<profile-summary>,cgscc(inline)' -S -inline-threshold=600 -enable-n… 8 ; The command line argument for inline-threshold should override 9 ; the default cold threshold, so a cold function with size bigger 10 ; than the default cold threshold (225) will be inlined. 18 ; This function should be larger than the cold threshold (75), but smaller 19 ; than the regular threshold. 38 ; This function should be larger than the default cold threshold (225).
|
| H A D | inline-hot-callsite-2.ll | 1 …equire<profile-summary>,cgscc(inline)' -inline-threshold=0 -inlinehint-threshold=0 -hot-callsite-t… 4 ; entry count and the callsite block frequency gets the hot-callsite-threshold. 6 ; because cost exceeds the inline-threshold. inlinthint-threshold is set to 0 7 ; to ensure callee's hotness is not used to boost the threshold.
|
| H A D | inline-threshold.ll | 1 ; Test that -inline-threshold overrides thresholds derived from opt levels. 2 ; RUN: opt < %s -O2 -inline-threshold=500 -S | FileCheck %s 3 ; RUN: opt < %s -O3 -inline-threshold=500 -S | FileCheck %s 4 ; RUN: opt < %s -Os -inline-threshold=500 -S | FileCheck %s 5 ; RUN: opt < %s -Oz -inline-threshold=500 -S | FileCheck %s
|
| H A D | inline-hot-callsite.ll | 1 ; This tests that a hot callsite gets the (higher) inlinehint-threshold even without 3 ; inlinehint-threshold. A cold callee with identical body does not get inlined because 4 ; cost exceeds the inline-threshold 6 ; RUN: opt < %s -inline -inline-threshold=0 -hot-callsite-threshold=100 -S -enable-new-pm=0 | FileC… 7 …s -passes='require<profile-summary>,cgscc(inline)' -inline-threshold=0 -hot-callsite-threshold=100… 11 ; RUN: opt < %s -passes='default<O2>' -inline-threshold=0 -hot-callsite-threshold=100 -S | FileChec…
|
| H A D | inline-optsize.ll | 5 ; The inline threshold for a function with the optsize attribute is currently 6 ; the same as the global inline threshold for -Os. Check that the optsize 7 ; function attribute doesn't alter the function-specific inline threshold if the 8 ; global inline threshold is lower (as for -Oz). 12 ; This function should be larger than the inline threshold for -Oz (25), but 13 ; smaller than the inline threshold for optsize (75).
|
| H A D | inline-hot-callee.ll | 1 ; RUN: opt < %s -inline -inline-threshold=0 -inlinehint-threshold=100 -S -enable-new-pm=0 | FileChe… 3 ; This tests that a hot callee gets the (higher) inlinehint-threshold even 5 ; inlinehint-threshold. A cold callee with identical body does not get inlined 6 ; because cost exceeds the inline-threshold. This test is relevant only when the
|
| H A D | inline-cost-annotation-pass.ll | 5 ; CHECK: cost before = {{.*}}, cost after = {{.*}}, threshold before = {{.*}}, threshold after = {… 7 ; CHECK: cost before = {{.*}}, cost after = {{.*}}, threshold before = {{.*}}, threshold after = {…
|
| /llvm-project-15.0.7/llvm/test/Transforms/LoopUnroll/ |
| H A D | full-unroll-heuristics.ll | 3 ; 1) -unroll-threshold 4 ; 3) -unroll-percent-dynamic-cost-saved-threshold and 8 ; * If size of unrolled loop exceeds the absoulte threshold, we don't unroll 10 ; * If size of unrolled loop is below the '-unroll-threshold', then we'll 20 …ll -unroll-max-iteration-count-to-analyze=1000 -unroll-threshold=10 -unroll-max-percent-threshold-… 21 …ll -unroll-max-iteration-count-to-analyze=1000 -unroll-threshold=20 -unroll-max-percent-threshold-… 22 …ll -unroll-max-iteration-count-to-analyze=1000 -unroll-threshold=20 -unroll-max-percent-threshold-… 29 …l' -unroll-max-iteration-count-to-analyze=1000 -unroll-threshold=10 -unroll-max-percent-threshold-… 30 …l' -unroll-max-iteration-count-to-analyze=1000 -unroll-threshold=20 -unroll-max-percent-threshold-… 33 ; If the absolute threshold is too low, we should not unroll: [all …]
|
| H A D | partial-unroll-const-bounds.ll | 1 …artial-threshold=20 -unroll-threshold=20 -loop-unroll -unroll-allow-partial -unroll-runtime -unrol… 2 …nroll-partial-threshold=20 -unroll-threshold=20 -unroll-allow-partial -unroll-runtime -unroll-allo… 5 …nroll-partial-threshold=20 -unroll-threshold=20 -unroll-allow-partial -unroll-runtime -unroll-allo… 7 ; The Loop TripCount is 9. However unroll factors 3 or 9 exceed given threshold.
|
| H A D | opt-levels.ll | 1 … %s -S -passes="default<O2>" -unroll-runtime=true -unroll-threshold-default=0 -unroll-threshold-ag… 2 … %s -S -passes="default<O3>" -unroll-runtime=true -unroll-threshold-default=0 -unroll-threshold-ag… 3 … %s -S -passes="default<Os>" -unroll-runtime=true -unroll-threshold-default=0 -unroll-threshold-ag… 4 … %s -S -passes="default<Oz>" -unroll-runtime=true -unroll-threshold-default=0 -unroll-threshold-ag… 8 ; the default threshold to 0.
|
| H A D | runtime-loop2.ll | 1 ; RUN: opt < %s -S -loop-unroll -unroll-threshold=25 -unroll-partial-threshold=25 -unroll-runtime -… 2 ; RUN: opt < %s -S -loop-unroll -unroll-threshold=25 -unroll-partial-threshold=25 -unroll-runtime -… 4 …S -passes='require<opt-remark-emit>,loop-unroll' -unroll-threshold=25 -unroll-partial-threshold=25… 5 …S -passes='require<opt-remark-emit>,loop-unroll' -unroll-threshold=25 -unroll-partial-threshold=25…
|
| H A D | full-unroll-heuristics-phi-prop.ll | 1 …oll -unroll-max-iteration-count-to-analyze=100 -unroll-threshold=10 -unroll-max-percent-threshold-… 2 …l)' -unroll-max-iteration-count-to-analyze=100 -unroll-threshold=10 -unroll-max-percent-threshold-…
|
| /llvm-project-15.0.7/llvm/test/Transforms/Inline/ARM/ |
| H A D | inline-fp.ll | 9 ; NOFP-DAG: 'single_cheap' inlined into 'test_single_cheap' with (cost=-15, threshold=75) 10 ; NOFP-DAG: 'single_cheap' inlined into 'test_single_cheap' with (cost=-15015, threshold=75) 18 ; FULLFP-DAG: 'single' inlined into 'test_single' with (cost=0, threshold=75) 19 ; FULLFP-DAG: 'single' inlined into 'test_single' with (cost=-15000, threshold=75) 20 ; FULLFP-DAG: 'single_cheap' inlined into 'test_single_cheap' with (cost=-15, threshold=75) 21 ; FULLFP-DAG: 'single_cheap' inlined into 'test_single_cheap' with (cost=-15015, threshold=75) 22 ; FULLFP-DAG: 'double' inlined into 'test_double' with (cost=0, threshold=75) 23 ; FULLFP-DAG: 'double' inlined into 'test_double' with (cost=-15000, threshold=75) 29 ; SINGLEFP-DAG: 'single' inlined into 'test_single' with (cost=0, threshold=75) 30 ; SINGLEFP-DAG: 'single' inlined into 'test_single' with (cost=-15000, threshold=75) [all …]
|
| /llvm-project-15.0.7/llvm/test/Transforms/LoopUnroll/AMDGPU/ |
| H A D | unroll-threshold.ll | 6 ; (which sets a threshold for all loops in the function). 9 ; unroll threshold 35 ; unroll threshold is increased by use of the amdgpu.loop.unroll.threshold metadata 58 ; unroll threshold specified using the amdgpu-unroll-threshold function attribute 59 ; is overridden by a low threshold using the amdgpu.loop.unroll.threshold metadata 83 ; unroll threshold specified using the amdgpu-unroll-threshold function attribute 84 ; is overridden by a high threshold using the amdgpu.loop.unroll.threshold metadata 107 attributes #0 = { "amdgpu-unroll-threshold"="1000" } 108 attributes #1 = { "amdgpu-unroll-threshold"="100" } 111 !2 = !{!"amdgpu.loop.unroll.threshold", i32 1000} [all …]
|
| /llvm-project-15.0.7/llvm/test/tools/llvm-profdata/ |
| H A D | suppl-instr-with-sample.test | 6 RUN: -suppl-min-size-threshold=0 %p/Inputs/mix_instr.proftext -o %t 22 Test when the zero counter ratio of foo is higher than zero-counter-threshold. 25 RUN: -suppl-min-size-threshold=0 -zero-counter-threshold=0.5 \ 26 RUN: -instr-prof-cold-threshold=30 %p/Inputs/mix_instr.proftext -o %t 42 Test when the zero counter ratio of foo is lower than zero-counter-threshold. 45 RUN: -suppl-min-size-threshold=0 -zero-counter-threshold=0.7 \ 46 RUN: -instr-prof-cold-threshold=30 %p/Inputs/mix_instr.proftext -o %t 63 than suppl-min-size-threshold. 66 RUN: -suppl-min-size-threshold=2 -zero-counter-threshold=0.7 \ 67 RUN: -instr-prof-cold-threshold=30 %p/Inputs/mix_instr.proftext -o %t [all …]
|
| /llvm-project-15.0.7/llvm/test/tools/llvm-profgen/ |
| H A D | cs-preinline.test | 6 …n-cs-nested-profile=0 --sample-profile-hot-inline-threshold=3000 --sample-profile-cold-inline-thre… 9 ; Test preinliner threshold that prevents all possible inlining and merges everything into base pro… 10 …n-cs-nested-profile=0 --sample-profile-hot-inline-threshold=3000 --sample-profile-cold-inline-thre… 14 …n-cs-nested-profile=0 --sample-profile-hot-inline-threshold=3000 --sample-profile-cold-inline-thre… 19 …--csspgo-preinliner=1 --sample-profile-hot-inline-threshold=3000 --sample-profile-cold-inline-thre… 23 …n-cs-nested-profile=0 --sample-profile-hot-inline-threshold=3000 --sample-profile-cold-inline-thre… 25 …--csspgo-preinliner=1 --sample-profile-hot-inline-threshold=3000 --sample-profile-cold-inline-thre…
|
| /llvm-project-15.0.7/llvm/test/Transforms/LoopUnrollAndJam/ |
| H A D | opt-levels.ll | 1 …<O2>" -unroll-runtime=true -enable-unroll-and-jam -unroll-threshold-default=0 -unroll-threshold-ag… 2 …<O3>" -unroll-runtime=true -enable-unroll-and-jam -unroll-threshold-default=0 -unroll-threshold-ag… 3 …<Os>" -unroll-runtime=true -enable-unroll-and-jam -unroll-threshold-default=0 -unroll-threshold-ag… 4 …<Oz>" -unroll-runtime=true -enable-unroll-and-jam -unroll-threshold-default=0 -unroll-threshold-ag… 8 ; the default threshold to 0.
|
| /llvm-project-15.0.7/llvm/test/Transforms/Inline/X86/ |
| H A D | extractvalue.ll | 1 ; RUN: opt < %s -inline -inline-threshold=0 -debug-only=inline-cost -print-instruction-comments -S … 2 ; RUN: opt < %s -passes='cgscc(inline)' -inline-threshold=0 -debug-only=inline-cost -print-instruct… 13 ; CHECK-NEXT: ; cost before = -35, cost after = -35, threshold before = 0, threshold after = 0, cos… 15 ; CHECK-NEXT: ; cost before = -35, cost after = -35, threshold before = 0, threshold after = 0, cos…
|
| H A D | insertvalue.ll | 1 ; RUN: opt < %s -inline -inline-threshold=0 -debug-only=inline-cost -print-instruction-comments -S … 2 ; RUN: opt < %s -passes='cgscc(inline)' -inline-threshold=0 -debug-only=inline-cost -print-instruct… 13 ; CHECK-NEXT: ; cost before = -40, cost after = -35, threshold before = 0, threshold after = 0, cos… 15 ; CHECK-NEXT: ; cost before = -35, cost after = -35, threshold before = 0, threshold after = 0, cos…
|
| /llvm-project-15.0.7/llvm/test/LTO/Resolution/X86/ |
| H A D | diagnostic-handler-remarks-with-hotness.ll | 12 ; Check low threshold allows remarks to emit. 16 ; RUN: -pass-remarks-hotness-threshold=300 \ 22 ; Check high threshold disallows remarks to emit. 26 ; RUN: -pass-remarks-hotness-threshold=301 \ 39 ; Check low threshold allows remarks to emit. 42 ; RUN: -pass-remarks-hotness-threshold=300 \ 47 ; Check high threshold disallows remarks to emit. 50 ; RUN: -pass-remarks-hotness-threshold=301 \ 69 ; RUN: -pass-remarks-hotness-threshold=300 \ 92 ; YAML-NEXT: - String: ', threshold=' [all …]
|
| /llvm-project-15.0.7/llvm/test/CodeGen/Hexagon/ |
| H A D | optimize-mux.ll | 1 ; RUN: llc -march=hexagon -hexagon-gen-mux-threshold=0 < %s | FileCheck %s --check-prefix=CHECK0 2 ; RUN: llc -march=hexagon -hexagon-gen-mux-threshold=4 < %s | FileCheck %s --check-prefix=CHECK4 4 ; Generate mux with threshold = 0: 9 ; No mux for threshold = 4:
|
| /llvm-project-15.0.7/llvm/test/Instrumentation/AddressSanitizer/ |
| H A D | instrumentation-with-call-threshold.ll | 2 ; -asan-instrumentation-with-call-threshold 5 ; RUN: opt < %s -passes='asan-pipeline' -asan-instrumentation-with-call-threshold=1 -S | FileCheck … 6 ; RUN: opt < %s -passes='asan-pipeline' -asan-instrumentation-with-call-threshold=0 -S | FileCheck … 7 ; RUN: opt < %s -passes='asan-pipeline' -asan-instrumentation-with-call-threshold=0 -asan-memory-ac… 8 ; RUN: opt < %s -passes='asan-pipeline' -asan-instrumentation-with-call-threshold=5 -S | FileCheck …
|