[PATCH] D142882: [Assignment Tracking][SROA] Delete dbg.assigns linked to rewritten stores
Orlando Cazalet-Hyams via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 10 01:57:26 PST 2023
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGbb059e85d61b: [Assignment Tracking][SROA] Delete dbg.assigns linked to rewritten stores (authored by Orlando).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D142882/new/
https://reviews.llvm.org/D142882
Files:
llvm/lib/Transforms/Scalar/SROA.cpp
llvm/test/DebugInfo/Generic/assignment-tracking/sroa/complex.ll
Index: llvm/test/DebugInfo/Generic/assignment-tracking/sroa/complex.ll
===================================================================
--- llvm/test/DebugInfo/Generic/assignment-tracking/sroa/complex.ll
+++ llvm/test/DebugInfo/Generic/assignment-tracking/sroa/complex.ll
@@ -1,4 +1,5 @@
-; RUN: opt -passes=sroa -S -o - %s | FileCheck %s
+; RUN: opt -passes=sroa -S -o - %s \
+; RUN: | FileCheck %s --implicit-check-not="call void @llvm.dbg"
;
;; Based on llvm/test/DebugInfo/ARM/sroa-complex.ll
;; generated from:
Index: llvm/lib/Transforms/Scalar/SROA.cpp
===================================================================
--- llvm/lib/Transforms/Scalar/SROA.cpp
+++ llvm/lib/Transforms/Scalar/SROA.cpp
@@ -3579,6 +3579,9 @@
getAdjustedAlignment(&SI, 0), DL, IRB);
Splitter.emitSplitOps(V->getType(), V, V->getName() + ".fca");
Visited.erase(&SI);
+ // The stores replacing SI each have markers describing fragments of the
+ // assignment so delete the assignment markers linked to SI.
+ at::deleteAssignmentMarkers(&SI);
SI.eraseFromParent();
return true;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142882.496384.patch
Type: text/x-patch
Size: 1131 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230210/8d57411c/attachment.bin>
More information about the llvm-commits
mailing list