[llvm] [RFC][ThinLTO] Reduce the number of function name promotions (PR #178587)

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 4 23:06:52 PST 2026


================
@@ -28,6 +28,10 @@ static cl::opt<bool> UseSourceFilenameForPromotedLocals(
              "This requires that the source filename has a unique name / "
              "path to avoid name collisions."));
 
+static cl::opt<bool> AlwaysPromoteImportedLocalFunctions(
+    "always-promote-imported-local-functions", cl::Hidden,
----------------
teresajohnson wrote:

This should be something like "always-rename-promoted-locals" (since it is the renaming not promotion being affected - also, we have to promote even if they are referenced by an imported function but not imported themselves). Also this is applying to variables not just functions.

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


More information about the llvm-commits mailing list