[LLVMdev] Pass to remove unused functions
Chris Lattner
clattner at apple.com
Tue May 5 15:53:01 PDT 2009
On May 5, 2009, at 3:48 PM, Villmow, Micah wrote:
> In order to handle a large vector based math library I link in a
> fairly large bitcode file that might or might not be needed. The
> problem is that linking in this bitcode file drastically increases
> the amount of compile time required. Is there a way to remove all
> functions that are not used after this linking pass? Something
> similar to die but removes functions from the compilation unit
> instead of instructions.
>
The -globaldce pass will remove dead internal globals and functions.
-Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090505/7ab53052/attachment.html>
More information about the llvm-dev
mailing list