[PATCH] D42541: [DeadArgumentElimination] Preserve llvm.dbg.values's first argument
Adrian Prantl via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 25 10:58:56 PST 2018
aprantl added a comment.
I think I now get what the code in lib/IR/Metadata.cpp:413 is supposed to be doing.
It checks whether the RAUW operation moves the Value from one function to another, and if yes, it (correctly) assumes that the debug info should be destroyed in the process. The dead function argument pass is a really special case that rewrites the function signature of the current function and thus also triggers this condition.
https://reviews.llvm.org/D42541
More information about the llvm-commits
mailing list