Revert "[BOLT] Hash-based function matching" (#96568)

Reverts llvm/llvm-project#95821
This commit is contained in:
shaw young
2024-06-24 15:44:24 -07:00
committed by GitHub
parent b3c668b005
commit 32e4906c28
5 changed files with 10 additions and 135 deletions

View File

@@ -82,7 +82,6 @@ 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;
@@ -2983,9 +2982,6 @@ 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).