[llvm] [ElimAvailExtern] Add an option to allow to convert global variables in a specified address space to local (PR #144287)

Mircea Trofin via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 16 08:35:35 PDT 2025


================
@@ -88,9 +94,32 @@ static void convertToLocalCopy(Module &M, Function &F) {
   ++NumConversions;
 }
 
+static void convertToLocalCopy(Module &M, GlobalValue &GV) {
----------------
mtrofin wrote:

maybe factor out the calculation and setting of the new name and linkage and reuse it at line 77 

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


More information about the llvm-commits mailing list