[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:55:06 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-bolt

Author: None (lifengxiang1025)

<details>
<summary>Changes</summary>



---
Full diff: https://github.com/llvm/llvm-project/pull/99463.diff


1 Files Affected:

- (modified) bolt/lib/Rewrite/RewriteInstance.cpp (+1-1) 


``````````diff
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;

``````````

</details>


https://github.com/llvm/llvm-project/pull/99463


More information about the llvm-commits mailing list