[llvm] [SROA] Fix debug locations for variables with non-zero offsets (PR #97750)

Jeremy Morse via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 15 10:42:46 PDT 2024


================
@@ -5110,57 +5288,79 @@ bool SROA::splitAlloca(AllocaInst &AI, AllocaSlices &AS) {
   NumAllocaPartitions += NumPartitions;
   MaxPartitionsPerAlloca.updateMax(NumPartitions);
 
-  // Migrate debug information from the old alloca to the new alloca(s)
-  // and the individual partitions.
----------------
jmorse wrote:

Useful comment surely?

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


More information about the llvm-commits mailing list