[llvm-bugs] [Bug 38714] [DebugInfo] [DWARF] [AArch64] .debug_loc entry missing in optimized build on aarch64

Including Paul and llvm-dev.

Either the register copy was introduced with no debug info, or the debug info got lost along the way.

My first thought would be to use –print-after-all (or however that’s spelled) and look for the pass where the problem first appears. You could start with opt, to eliminate the IR passes, then use llc.

–paulr