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

Vedant Kumar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 3 18:08:22 PDT 2018


vsk updated this revision to Diff 154033.
vsk retitled this revision from "[Local] Teach insertReplacementDbgValues basic integer/pointer conversions" to "[Local] replaceAllDbgUsesWith: Update debug values before RAUW".
vsk edited the summary of this revision.
vsk added a comment.

- Introduce and use DIExpression::appendToStack() to create sign extension stack values. It takes care of dereferencing indirect values when needed.
- Rename insertReplacementDbgValues to replaceAllDbgUsesWith. The main change is that debug intrinsics are now updated in-place. The previous behavior of inserting new debug values could reorder the way variable updates are seen in the debugger.


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-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.154033.patch
Type: text/x-patch
Size: 33525 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180704/e6e2f9bf/attachment-0001.bin>


More information about the llvm-commits mailing list