[llvm] Handle #dbg_values in SROA. (PR #94070)
Adrian Prantl via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 7 16:29:09 PDT 2024
================
@@ -5178,6 +5188,7 @@ bool SROA::splitAlloca(AllocaInst &AI, AllocaSlices &AS) {
};
for_each(findDbgDeclares(Fragment.Alloca), RemoveOne);
for_each(findDVRDeclares(Fragment.Alloca), RemoveOne);
+ for_each(findDVRValues(Fragment.Alloca), RemoveOne);
----------------
adrian-prantl wrote:
Related to our conversation in the other PR — this is not a place to use findDbgUsers() then?
https://github.com/llvm/llvm-project/pull/94070
More information about the llvm-commits
mailing list