[LLVMdev] Which pass converts call printf to puts?

Criswell, John T criswell at illinois.edu
Sun Jun 17 09:02:50 PDT 2012


I think it is called simplifylibcalls or something like that.

Sent from my iPhone

On Jun 17, 2012, at 11:59 AM, "Thomson" <lilotom at gmail.com<mailto:lilotom at gmail.com>> wrote:

I found that LLVM optimized the IR by replacing printf with puts. I wondered  which pass did this optimization? And is it common that puts is faster (and some other metric) than printf?
--
Thanks
Thomson

_______________________________________________
LLVM Developers mailing list
LLVMdev at cs.uiuc.edu<mailto:LLVMdev at cs.uiuc.edu>         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120617/e1933887/attachment.html>


More information about the llvm-dev mailing list