[PATCH] D44127: DeadArgumentElim] Clone function level metadatas
Rong Xu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 5 16:38:26 PST 2018
xur created this revision.
xur added reviewers: davidxl, eraman.
Herald added a subscriber: mehdi_amini.
Some Function level metadatas, such as function entry count, are not cloned in DeadArgumentElim. This happens a lot in lto/thinlto because of DeadArgumentElim after internalization.
This patch clones the metadatas in the original function to the new function.
https://reviews.llvm.org/D44127
Files:
lib/Transforms/IPO/DeadArgumentElimination.cpp
test/Transforms/DeadArgElim/func_metadata.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44127.137106.patch
Type: text/x-patch
Size: 5161 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180306/d36420cc/attachment.bin>
More information about the llvm-commits
mailing list