[PATCH] D70040: Clang-trunk Generates Wrong Debug values with -O1

kamlesh kumar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 8 21:48:27 PST 2019


kamleshbhalui created this revision.
kamleshbhalui added a reviewer: vsk.
kamleshbhalui added a project: debug-info.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.

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


Repository:
  rL LLVM

https://reviews.llvm.org/D70040

Files:
  llvm/lib/Transforms/Scalar/BDCE.cpp
  llvm/test/Transforms/BDCE/pr41925.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70040.228557.patch
Type: text/x-patch
Size: 7210 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191109/6d4fce94/attachment-0001.bin>


More information about the llvm-commits mailing list