[all-commits] [llvm/llvm-project] 72ce75: [DebugInfo] Recover debug intrinsics when killing ...

Stephen Tozer via All-commits all-commits at lists.llvm.org
Wed Dec 4 08:04:03 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 72ce759928e6dfee6a9efa310b966c19722352ba
      https://github.com/llvm/llvm-project/commit/72ce759928e6dfee6a9efa310b966c19722352ba
  Author: stozer <stephen.tozer at sony.com>
  Date:   2019-12-04 (Wed, 04 Dec 2019)

  Changed paths:
    M llvm/include/llvm/Transforms/Utils/Local.h
    M llvm/lib/Transforms/Utils/Local.cpp
    M llvm/lib/Transforms/Utils/SimplifyCFG.cpp
    A llvm/test/Transforms/SimplifyCFG/hoist-dbgvalue-else.ll
    A llvm/test/Transforms/SimplifyCFG/hoist-dbgvalue-empty.ll

  Log Message:
  -----------
  [DebugInfo] Recover debug intrinsics when killing duplicated/empty basic blocks

When basic blocks are killed, either due to being empty or to being an if.then
or if.else block whose complement contains identical instructions, some of the
debug intrinsics in that block are lost. This patch sinks those intrinsics
into the single successor block, setting them Undef if necessary to
prevent debug info from falling out-of-date.

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




More information about the All-commits mailing list