[llvm] [DebugInfo][GlobalOpt] Preserve source locs for optimized loads (PR #134828)
Reid Kleckner via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 16 05:08:52 PDT 2025
================
@@ -988,6 +988,11 @@ OptimizeGlobalAddressOfAllocation(GlobalVariable *GV, CallInst *CI,
InitBool->getName() + ".val", false, Align(1),
LI->getOrdering(), LI->getSyncScopeID(),
LI->getIterator());
+ // FIXME: Should we use the DebugLoc of the load used by the predicate, or
----------------
rnk wrote:
I see `new StoreInst` above which looks like it does similar straightforward replacement, should we carry over the sloc there?
https://github.com/llvm/llvm-project/pull/134828
More information about the llvm-commits
mailing list