[all-commits] [llvm/llvm-project] d966bf: [WebAssembly] Preserve debug frame base informatio...

Derek Schuff via All-commits all-commits at lists.llvm.org
Tue Jan 28 16:59:23 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: d966bf830fe1625e0037e8b59e918f1c49ace3f3
      https://github.com/llvm/llvm-project/commit/d966bf830fe1625e0037e8b59e918f1c49ace3f3
  Author: Derek Schuff <dschuff at chromium.org>
  Date:   2020-01-28 (Tue, 28 Jan 2020)

  Changed paths:
    M llvm/lib/Target/WebAssembly/WebAssemblyExplicitLocals.cpp
    M llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.cpp
    M llvm/lib/Target/WebAssembly/WebAssemblyMachineFunctionInfo.h
    M llvm/lib/Target/WebAssembly/WebAssemblyRegColoring.cpp
    M llvm/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp
    A llvm/test/CodeGen/WebAssembly/debugtest-opt.ll

  Log Message:
  -----------
  [WebAssembly] Preserve debug frame base information through register coloring

2 fixes:

Register coloring can re-assign virtual registers. When the frame base register
is colored, update the DwarfFrameBase accordingly When the frame base register
is stackified, do not attempt to encode DW_AT_frame_base as a local In the
future we will presumably want to handle this case better but for now we can
emit worse debug info rather than crashing.

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




More information about the All-commits mailing list