diff --git a/llvm/lib/Transforms/IPO/ElimAvailExtern.cpp b/llvm/lib/Transforms/IPO/ElimAvailExtern.cpp index bc98f994f490c..538755e66f9cf 100644 --- a/llvm/lib/Transforms/IPO/ElimAvailExtern.cpp +++ b/llvm/lib/Transforms/IPO/ElimAvailExtern.cpp @@ -35,6 +35,10 @@ static cl::opt ConvertToLocal( cl::desc("Convert available_externally into locals, renaming them " "to avoid link-time clashes.")); +// This option was originally introduced to correctly support the lowering of +// LDS variables for AMDGPU when ThinLTO is enabled. It can be utilized for +// other purposes, but make sure it is safe to do so, as privatizing global +// variables is generally not safe. static cl::opt ConvertGlobalVariableInAddrSpace( "avail-extern-gv-in-addrspace-to-local", cl::Hidden, cl::desc(