[lld] [llvm] [NFCI][LTO][lld] Optimize away symbol copies within LTO global resolution in ELF (PR #106193)

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 30 13:10:43 PDT 2024


================
@@ -78,6 +78,10 @@ cl::opt<bool> EnableLTOInternalization(
     "enable-lto-internalization", cl::init(true), cl::Hidden,
     cl::desc("Enable global value internalization in LTO"));
 
+static cl::opt<bool>
+    LTOKeepSymbolCopies("lto-keep-symbol-copies", cl::init(false), cl::Hidden,
----------------
teresajohnson wrote:

Why is an option needed? I think this can just be set through the config.

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


More information about the llvm-commits mailing list