File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 39
39
40
40
using namespace llvm ;
41
41
42
+ // FIXME: This cutoff value is CPU dependent and should be moved to
43
+ // TargetTransformInfo once we consider enabling this on other platforms.
44
+ // The value is expressed as a ProfileSummaryInfo integer percentile cutoff.
45
+ // Defaults to 999950, i.e. all blocks colder than 99.995 percentile are split.
46
+ // The default was empirically determined to be optimal when considering cutoff
47
+ // values between 99%-ile to 100%-ile with respect to iTLB and icache metrics on
48
+ // Intel CPUs.
42
49
static cl::opt<unsigned >
43
50
PercentileCutoff (" mfs-psi-cutoff" ,
44
51
cl::desc (" Percentile profile summary cutoff used to "
45
52
" determine cold blocks. Unused if set to zero." ),
46
- cl::init(0 ), cl::Hidden);
53
+ cl::init(999950 ), cl::Hidden);
47
54
48
55
static cl::opt<unsigned > ColdCountThreshold (
49
56
" mfs-count-threshold" ,
Original file line number Diff line number Diff line change 1
1
; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu -split-machine-functions | FileCheck %s -check-prefix=MFS-DEFAULTS
2
- ; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu -split-machine-functions -mfs-count-threshold=2000 | FileCheck %s --dump-input=always -check-prefix=MFS-OPTS1
2
+ ; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu -split-machine-functions -mfs-psi-cutoff=0 -mfs- count-threshold=2000 | FileCheck %s --dump-input=always -check-prefix=MFS-OPTS1
3
3
; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu -split-machine-functions -mfs-psi-cutoff=950000 | FileCheck %s -check-prefix=MFS-OPTS2
4
4
5
5
define void @foo1 (i1 zeroext %0 ) nounwind !prof !14 !section_prefix !15 {
You can’t perform that action at this time.
0 commit comments