[llvm] [BOLT] Fix mustSkip when symbol's name changed by BOLT (PR #99463)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 18 02:54:35 PDT 2024
https://github.com/lifengxiang1025 created https://github.com/llvm/llvm-project/pull/99463
None
>From 055cae24d83fd2084b3a38b73b722450feb48e14 Mon Sep 17 00:00:00 2001
From: lifengxiang <lifengxiang at kuaishou.com>
Date: Thu, 18 Jul 2024 09:52:34 +0000
Subject: [PATCH] [BOLT] Fix mustSkip when symbol's name changed by BOLT
---
bolt/lib/Rewrite/RewriteInstance.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bolt/lib/Rewrite/RewriteInstance.cpp b/bolt/lib/Rewrite/RewriteInstance.cpp
index ded2f577237fe..699266d895b5c 100644
--- a/bolt/lib/Rewrite/RewriteInstance.cpp
+++ b/bolt/lib/Rewrite/RewriteInstance.cpp
@@ -2947,7 +2947,7 @@ void RewriteInstance::selectFunctionsToProcess() {
NumFunctionsToProcess >= opts::MaxFunctions)
return true;
for (std::string &Name : opts::SkipFunctionNames)
- if (Function.hasNameRegex(Name))
+ if (Function.hasNameRegex(Name) || Function.hasRestoredNameRegex(Name))
return true;
return false;
More information about the llvm-commits
mailing list