[llvm] [DebugInfo][RemoveDIs] Don't allocate one DPMarker per instruction (PR #79345)

Stephen Tozer via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 26 03:18:42 PST 2024


================
@@ -882,16 +886,15 @@ void BasicBlock::spliceDebugInfo(BasicBlock::iterator Dest, BasicBlock *Src,
     }
 
     if (First->hasDbgValues()) {
----------------
SLTozer wrote:

Can't this whole if/else block be replaced by just `adoptDbgValues`?

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


More information about the llvm-commits mailing list