[𝘀𝗽𝗿] initial version
Created using spr 1.3.4
This commit is contained in:
@@ -82,6 +82,7 @@ extern cl::opt<bool> Hugify;
|
||||
extern cl::opt<bool> Instrument;
|
||||
extern cl::opt<JumpTableSupportLevel> JumpTables;
|
||||
extern cl::opt<bool> KeepNops;
|
||||
extern cl::opt<bool> MatchProfileWithFunctionHash;
|
||||
extern cl::list<std::string> ReorderData;
|
||||
extern cl::opt<bolt::ReorderFunctions::ReorderType> ReorderFunctions;
|
||||
extern cl::opt<bool> TerminalTrap;
|
||||
@@ -140,9 +141,6 @@ KeepTmp("keep-tmp",
|
||||
cl::Hidden,
|
||||
cl::cat(BoltCategory));
|
||||
|
||||
cl::opt<bool> Lite("lite", cl::desc("skip processing of cold functions"),
|
||||
cl::cat(BoltCategory));
|
||||
|
||||
static cl::opt<unsigned>
|
||||
LiteThresholdPct("lite-threshold-pct",
|
||||
cl::desc("threshold (in percent) for selecting functions to process in lite "
|
||||
@@ -2982,6 +2980,9 @@ void RewriteInstance::selectFunctionsToProcess() {
|
||||
if (mustSkip(Function))
|
||||
return false;
|
||||
|
||||
if (opts::MatchProfileWithFunctionHash)
|
||||
return true;
|
||||
|
||||
// If the list is not empty, only process functions from the list.
|
||||
if (!opts::ForceFunctionNames.empty() || !ForceFunctionsNR.empty()) {
|
||||
// Regex check (-funcs and -funcs-file options).
|
||||
|
||||
Reference in New Issue
Block a user