[llvm] [DebugInfo][LoopIdiomRecognize] Fix #82582: Wrong debug location update in processLoopStoreOfLoopLoad (PR #82608)
Adrian Prantl via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 23 12:08:21 PST 2024
================
@@ -1418,7 +1418,8 @@ bool LoopIdiomRecognize::processLoopStoreOfLoopLoad(
StoreBasePtr, *StoreAlign, LoadBasePtr, *LoadAlign, NumBytes, StoreSize,
AATags.TBAA, AATags.TBAAStruct, AATags.Scope, AATags.NoAlias);
}
- NewCall->setDebugLoc(TheStore->getDebugLoc());
+
+ NewCall->dropLocation();
----------------
adrian-prantl wrote:
Would be good to document why dropping the location is the right thing to do here.
https://github.com/llvm/llvm-project/pull/82608
More information about the llvm-commits
mailing list