[PATCH] D23715: Add @llvm.dbg.value entries for the phi node created by -mem2reg
Keith Walker via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 16 08:19:56 PDT 2016
keith.walker.arm updated this revision to Diff 71647.
keith.walker.arm added a comment.
Updated PhiHasDebugValue() to avoid scanning the whole instructions stream by using a new function llvm::FindAllocaDbgValues(). This new function is similar to the exiting function llvm::FindAllocaDbgDeclare() but has the additional complication that the result of the find can find multiple entries when applied to a phi node.
Updated test to capture matching names.
I decided to leave the function llvm::ConvertDebugDeclareToDebugValue() always returning true so that it has a similar form to the preceding 2 functions which do the same thing.
https://reviews.llvm.org/D23715
Files:
include/llvm/Transforms/Utils/Local.h
lib/Transforms/Utils/Local.cpp
lib/Transforms/Utils/PromoteMemoryToRegister.cpp
test/Transforms/Util/mem2reg-dbg.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23715.71647.patch
Type: text/x-patch
Size: 8097 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160916/e7ca3247/attachment.bin>
More information about the llvm-commits
mailing list