[LLVMdev] Pass to remove unused functions

Chris Lattner clattner at apple.com
Wed May 6 11:27:41 PDT 2009


On May 6, 2009, at 10:53 AM, Villmow, Micah wrote:
> Yeah, I found that out, which is why I was hoping some kind of  
> attribute existed that the compiler knew about.
> We might go the path of modifying llvm-link to only link in  
> functions that are required as that seems to be the most optimal way  
> of doing it.

If you care about performance, then you should consider a completely  
different approach.  It is really inefficient to load a large volume  
of code and then delete it as dead.  I strongly recommend watching  
Nate's talk at the last llvm developer meeting.

-Chris

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090506/0f1d590c/attachment.html>


More information about the llvm-dev mailing list