[PATCH] D48676: [Local] replaceAllDbgUsesWith: Update debug values before RAUW

Vedant Kumar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 5 12:50:01 PDT 2018


vsk updated this revision to Diff 154291.
vsk marked 16 inline comments as done.
vsk added a comment.

- Rebase.
- Address the FromBits == ToBits case.
- Extend the unit test. There are two new values, %f and %g, which are used to demonstrate what happens in the two use-before-def scenarios: either we're able to salvage the debug user, or we need to delete it.


https://reviews.llvm.org/D48676

Files:
  include/llvm/IR/DebugInfoMetadata.h
  include/llvm/IR/Type.h
  include/llvm/Transforms/Utils/Local.h
  lib/CodeGen/AsmPrinter/DwarfExpression.cpp
  lib/IR/DebugInfoMetadata.cpp
  lib/Transforms/InstCombine/InstCombineCasts.cpp
  lib/Transforms/Utils/Local.cpp
  test/Transforms/InstCombine/alloca-cast-debuginfo.ll
  test/Transforms/InstCombine/cast-mul-select.ll
  test/Transforms/InstCombine/cast-set-preserve-signed-dbg-val.ll
  test/Transforms/InstCombine/debuginfo-variables.ll
  unittests/Transforms/Utils/Local.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48676.154291.patch
Type: text/x-patch
Size: 35858 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180705/d3ceec3e/attachment.bin>


More information about the llvm-commits mailing list