[llvm-branch-commits] [BOLT] Detect .warm split functions as cold fragments (PR #93759)

Maksim Panchenko via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu May 30 14:48:21 PDT 2024


================
@@ -596,6 +597,9 @@ class RewriteInstance {
 
   NameResolver NR;
 
+  // Regex object matching split function names.
+  const Regex ColdFragment{"(.*)\\.(cold|warm)(\\.[0-9]+)?"};
----------------
maksfb wrote:

nit: s/ColdFragment/FunctionFragmentTemplate/

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


More information about the llvm-branch-commits mailing list