[PATCH] D42541: [DeadArgumentElimination] Preserve llvm.dbg.values's first argument
Djordje Todorovic via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 25 08:06:36 PST 2018
djtodoro created this revision.
djtodoro added reviewers: davide, aprantl, llvm-commits.
djtodoro added a project: debug-info.
Dead Argument Elimination pass when removing return value clobbers first llvm.dbg.value’s argument for live arguments of that function by replacing it with nullptr. In the next pass it will be deleted, so debug location about those arguments are lost. This change fixes it.
https://reviews.llvm.org/D42541
Files:
include/llvm/IR/Metadata.h
include/llvm/IR/Value.h
lib/IR/Metadata.cpp
lib/IR/Value.cpp
lib/Transforms/IPO/DeadArgumentElimination.cpp
test/Transforms/DeadArgElim/dbginfo-preserve-dbgloc.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42541.131455.patch
Type: text/x-patch
Size: 12262 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180125/2ab0111d/attachment.bin>
More information about the llvm-commits
mailing list