[llvm] Add code to handle llvm.dbg.values in SROA. (PR #94068)

Adrian Prantl via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 3 09:10:23 PDT 2024


================
@@ -259,6 +259,13 @@ CallInst *changeToCall(InvokeInst *II, DomTreeUpdater *DTU = nullptr);
 ///  Dbg Intrinsic utilities
 ///
 
+/// Moves an llvm.dbg.value intrinsic before a store to an alloca'd value
+/// that has an associated llvm.dbg.value intrinsic.
+void MoveDebugValueToStoreLoc(DbgVariableRecord *DVR, StoreInst *SI,
+                              DIBuilder &Builder);
+void MoveDebugValueToStoreLoc(DbgVariableIntrinsic *DII, StoreInst *SI,
----------------
adrian-prantl wrote:

missing comment

https://github.com/llvm/llvm-project/pull/94068


More information about the llvm-commits mailing list