[cfe-dev] When two functions are the same could clang optimize out one of them?

邓尧 torshie at gmail.com
Mon Mar 7 21:55:00 PST 2011


Hi,
When the generated instructions of two functions "f()" & "g()" are the
same(when templates are used it isn't unusual), could clang remove the
function "f()" in the object file and translate "f()" calls to "g()" calls?

Thanks
--Yao
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20110308/dfe69333/attachment.html>


More information about the cfe-dev mailing list