[all-commits] [llvm/llvm-project] c8d6fa: [LiveDebugValues] Terminate open ranges on DBG_VAL...

Jeremy Morse via All-commits all-commits at lists.llvm.org
Thu Apr 16 02:27:45 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: c8d6fa5134ae66f3fb8e0b8caac5de4f737c8bef
      https://github.com/llvm/llvm-project/commit/c8d6fa5134ae66f3fb8e0b8caac5de4f737c8bef
  Author: Jeremy Morse <jeremy.morse at sony.com>
  Date:   2020-04-16 (Thu, 16 Apr 2020)

  Changed paths:
    M llvm/lib/CodeGen/LiveDebugValues.cpp
    A llvm/test/DebugInfo/MIR/X86/livedebugvalues_loop_terminated.mir

  Log Message:
  -----------
  [LiveDebugValues] Terminate open ranges on DBG_VALUE $noreg

In D68209, LiveDebugValues::transferDebugValue had a call to
OpenRanges.erase shifted, and by accident this led to a code path where
DBG_VALUEs of $noreg would not have their open range terminated, allowing
variable locations to extend past blocks where they were terminated.

This patch correctly terminates the open range, if present, when such a
DBG_VAUE is encountered, and adds a test for this behaviour.

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




More information about the All-commits mailing list