[all-commits] [llvm/llvm-project] 9cf31b: [DebugInfo][InstrRef] Preserve properties of resto...

Jeremy Morse via All-commits all-commits at lists.llvm.org
Mon Nov 29 13:57:43 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9cf31b8d39d67843eeb314bacf6f78a1c969e1cc
      https://github.com/llvm/llvm-project/commit/9cf31b8d39d67843eeb314bacf6f78a1c969e1cc
  Author: Jeremy Morse <jeremy.morse at sony.com>
  Date:   2021-11-29 (Mon, 29 Nov 2021)

  Changed paths:
    M llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
    A llvm/test/DebugInfo/MIR/InstrRef/restore-clobber-with-indirectness.mir

  Log Message:
  -----------
  [DebugInfo][InstrRef] Preserve properties of restored variables

InstrRefBasedLDV observes when variable locations are clobbered, scans what
values are available in the machine, and re-issues a DBG_VALUE for the
variable if it can find another location. Unfortunately, I hadn't joined up
the Indirectness flag, so if it did this to an Indirect Value, the
indirectness would be dropped.

Fix this, and add a test that if we clobber a variable value (on the stack
in this case), then the recovered variable location keeps the Indirect
flag.

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




More information about the All-commits mailing list