[all-commits] [llvm/llvm-project] 6ad702: [MachineOutliner] Preserve debug locations on outl...

Kyungwoo Lee via All-commits all-commits at lists.llvm.org
Tue Sep 22 14:04:45 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6ad70274f35f15ff2ac8c2f2b1425a52b3bfcc48
      https://github.com/llvm/llvm-project/commit/6ad70274f35f15ff2ac8c2f2b1425a52b3bfcc48
  Author: Kyungwoo Lee <kyulee at meta.com>
  Date:   2026-09-22 (Tue, 22 Sep 2026)

  Changed paths:
    M llvm/lib/CodeGen/MachineOutliner.cpp
    A llvm/test/CodeGen/AArch64/machine-outliner-call-debugloc.mir
    A llvm/test/DebugInfo/AArch64/machine-outliner-call-debugloc.ll

  Log Message:
  -----------
  [MachineOutliner] Preserve debug locations on outlined call sequences (#224189)

Machine Outliner replacement call sequences currently have no DebugLoc.
When one immediately follows another call, its address can be emitted
with DWARF line 0, meaning “unknown source location,” so symbolication
finds the function but not the source line.

Copy the first usable source location from each candidate to its
replacement call sequence, including any target-inserted save and
restore instructions. If none exists, leave the sequence locationless.
This matches the IR Outliner’s policy: preserve each replacement call’s
location while leaving the shared outlined body locationless because it
represents multiple source regions.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list