[all-commits] [llvm/llvm-project] d20a1b: [WebAssembly] Handle DebugLoc in DebugValueManager

Heejin Ahn via All-commits all-commits at lists.llvm.org
Wed Apr 12 23:47:43 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d20a1b87f689a716e16477b8562fd820a72a6a8b
      https://github.com/llvm/llvm-project/commit/d20a1b87f689a716e16477b8562fd820a72a6a8b
  Author: Heejin Ahn <aheejin at gmail.com>
  Date:   2023-04-12 (Wed, 12 Apr 2023)

  Changed paths:
    M llvm/lib/Target/WebAssembly/WebAssemblyDebugValueManager.cpp
    A llvm/test/DebugInfo/WebAssembly/dbg-loc-reg-stackify.mir

  Log Message:
  -----------
  [WebAssembly] Handle DebugLoc in DebugValueManager

According to
https://llvm.org/docs/HowToUpdateDebugInfo.html#when-to-preserve-an-instruction-location,
when moving (and in our case cloning) within the same BB, the debug
location is preserved. But when moving / cloning to a different BB, we
preserve the debug location only if the destination BB contains the same
location. Currently we preserve the debug loc unconditionally in all
cases. This CL correctly handles the debug locs in DebugValueManager.

Reviewed By: dschuff

Differential Revision: https://reviews.llvm.org/D148115




More information about the All-commits mailing list