[PATCH] D32041: [InstCombine] Fix !prof metadata preservation for invokes
Reid Kleckner via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 13 13:00:02 PDT 2017
rnk created this revision.
Bug noticed by inspection.
Extend the test to handle invokes as well as calls, and rewrite it to
not depend on the inliner and other passes.
Also simplify the call site replacement code with CallSite, similar to
what I did to dead arg elimination and arg promotion (https://reviews.llvm.org/rL300235 and
https://reviews.llvm.org/rL300229).
https://reviews.llvm.org/D32041
Files:
llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
llvm/test/Transforms/InstCombine/cast-call-combine-prof.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D32041.95188.patch
Type: text/x-patch
Size: 4155 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170413/6a5d7c2e/attachment.bin>
More information about the llvm-commits
mailing list