[llvm] [DebugInfo][LoopIdiomRecognize] Fix #82582: Wrong debug location update in processLoopStoreOfLoopLoad (PR #82608)
Shan Huang via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 23 18:37:18 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();
----------------
Apochens wrote:
Thanks, I put a comment here to explain why we need to drop the debug location instead of preserving the debug location of `TheStore`.
https://github.com/llvm/llvm-project/pull/82608
More information about the llvm-commits
mailing list