[llvm] [DebugInfo][GlobalOpt] Preserve source locs for optimized loads (PR #134828)
Stephen Tozer via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 17 09:25:53 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
----------------
SLTozer wrote:
It certainly looks like it - I'll find a test case and add it (and any other nearby cases if I spot any).
https://github.com/llvm/llvm-project/pull/134828
More information about the llvm-commits
mailing list