[all-commits] [llvm/llvm-project] 844d97: Clang-trunk Generates Wrong Debug values with -O1

Vedant Kumar via All-commits all-commits at lists.llvm.org
Thu Nov 21 14:04:49 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 844d97f650a2d716e63e3be903c32a82f2f817b1
      https://github.com/llvm/llvm-project/commit/844d97f650a2d716e63e3be903c32a82f2f817b1
  Author: Vedant Kumar <vsk at apple.com>
  Date:   2019-11-21 (Thu, 21 Nov 2019)

  Changed paths:
    M llvm/lib/Transforms/Scalar/BDCE.cpp
    A llvm/test/Transforms/BDCE/pr41925.ll

  Log Message:
  -----------
  Clang-trunk Generates Wrong Debug values with -O1

Bit-Tracking Dead Code Elimination (bdce) do not mark dbg.value as undef after
deleting instruction.  which shows invalid state of variable in debugger.  This
patches fixes this by marking the dbg.value as undef which depends on dead
instruction.

This fixes https://bugs.llvm.org/show_bug.cgi?id=41925

Patch by kamlesh kumar!

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




More information about the All-commits mailing list