@@ -50,7 +50,7 @@ static cl::opt<unsigned> ICPCallsRemainingPercentThreshold(
50
50
" icp-calls-remaining-percent-threshold" ,
51
51
cl::desc (" The percentage threshold against remaining unpromoted indirect "
52
52
" call count for the promotion for calls" ),
53
- cl::init(50 ), cl::ZeroOrMore, cl:: Hidden, cl::cat(BoltOptCategory));
53
+ cl::init(50 ), cl::Hidden, cl::cat(BoltOptCategory));
54
54
55
55
static cl::opt<unsigned > ICPCallsTotalPercentThreshold (
56
56
" icp-calls-total-percent-threshold" ,
@@ -63,7 +63,7 @@ static cl::opt<unsigned> ICPMispredictThreshold(
63
63
" indirect-call-promotion-mispredict-threshold" ,
64
64
cl::desc (" misprediction threshold for skipping ICP on an "
65
65
" indirect call" ),
66
- cl::init(0 ), cl::ZeroOrMore, cl:: cat(BoltOptCategory));
66
+ cl::init(0 ), cl::cat(BoltOptCategory));
67
67
68
68
static cl::opt<bool > ICPUseMispredicts (
69
69
" indirect-call-promotion-use-mispredicts" ,
@@ -77,31 +77,31 @@ static cl::opt<unsigned>
77
77
ICPTopN (" indirect-call-promotion-topn" ,
78
78
cl::desc (" limit number of targets to consider when doing indirect "
79
79
" call promotion. 0 = no limit" ),
80
- cl::init(3 ), cl::ZeroOrMore, cl:: cat(BoltOptCategory));
80
+ cl::init(3 ), cl::cat(BoltOptCategory));
81
81
82
82
static cl::opt<unsigned > ICPCallsTopN (
83
83
" indirect-call-promotion-calls-topn" ,
84
84
cl::desc (" limit number of targets to consider when doing indirect "
85
85
" call promotion on calls. 0 = no limit" ),
86
- cl::init(0 ), cl::ZeroOrMore, cl:: cat(BoltOptCategory));
86
+ cl::init(0 ), cl::cat(BoltOptCategory));
87
87
88
88
static cl::opt<unsigned > ICPJumpTablesTopN (
89
89
" indirect-call-promotion-jump-tables-topn" ,
90
90
cl::desc (" limit number of targets to consider when doing indirect "
91
91
" call promotion on jump tables. 0 = no limit" ),
92
- cl::init(0 ), cl::ZeroOrMore, cl:: cat(BoltOptCategory));
92
+ cl::init(0 ), cl::cat(BoltOptCategory));
93
93
94
94
static cl::opt<bool > EliminateLoads (
95
95
" icp-eliminate-loads" ,
96
96
cl::desc (" enable load elimination using memory profiling data when "
97
97
" performing ICP" ),
98
- cl::init(true ), cl::ZeroOrMore, cl:: cat(BoltOptCategory));
98
+ cl::init(true ), cl::cat(BoltOptCategory));
99
99
100
100
static cl::opt<unsigned > ICPTopCallsites (
101
101
" icp-top-callsites" ,
102
102
cl::desc (" optimize hottest calls until at least this percentage of all "
103
103
" indirect calls frequency is covered. 0 = all callsites" ),
104
- cl::init(99 ), cl::Hidden, cl::ZeroOrMore, cl:: cat(BoltOptCategory));
104
+ cl::init(99 ), cl::Hidden, cl::cat(BoltOptCategory));
105
105
106
106
static cl::list<std::string>
107
107
ICPFuncsList (" icp-funcs" , cl::CommaSeparated,
@@ -112,18 +112,17 @@ static cl::list<std::string>
112
112
static cl::opt<bool >
113
113
ICPOldCodeSequence (" icp-old-code-sequence" ,
114
114
cl::desc (" use old code sequence for promoted calls" ),
115
- cl::init(false ), cl::ZeroOrMore, cl::Hidden,
116
- cl::cat(BoltOptCategory));
115
+ cl::Hidden, cl::cat(BoltOptCategory));
117
116
118
117
static cl::opt<bool > ICPJumpTablesByTarget (
119
118
" icp-jump-tables-targets" ,
120
119
cl::desc (
121
120
" for jump tables, optimize indirect jmp targets instead of indices" ),
122
- cl::init( false ), cl::ZeroOrMore, cl:: Hidden, cl::cat(BoltOptCategory));
121
+ cl::Hidden, cl::cat(BoltOptCategory));
123
122
124
123
static cl::opt<bool > ICPPeelForInline (
125
124
" icp-inline" , cl::desc(" only promote call targets eligible for inlining" ),
126
- cl::init( false ), cl::ZeroOrMore, cl:: Hidden, cl::cat(BoltOptCategory));
125
+ cl::Hidden, cl::cat(BoltOptCategory));
127
126
128
127
} // namespace opts
129
128
0 commit comments