[LLVMdev] LTO ?

Owen Anderson resistor at mac.com
Thu Jan 24 12:34:05 PST 2008

You can use the opt tool to run passes explicitly.  For IPO passes to  
have much effect, you need to run -internalize first.


On Jan 24, 2008, at 2:23 PM, Jeff Inman wrote:

> Hi folks,
> I've got an idea for something I may be able to do as a Link-Time-
> Optimization pass,
> but I can't seem to find how LTO gets used.  My crude approach has
> been to compile
> LLVM for debugging, and then run gdb on llvm-ld with -O5 and two .bc
> files, trying to
> catch LTO in action.   I've also scanned the compiled tools, and none
> of them appear
> to use the symbol 'createLLVMOptimizer' (or anything with 'lto',
> etc).  The document at
> http://llvm.org/releases/2.1/docs/LinkTimeOptimization.html  doesn't
> seem to be of much
> help for getting started with this.   How do I provoke LTO?  Any
> suggestions?
> Thanks,
> Jeff
> Jeff Inman  -- jti at lanl.gov
> Advanced Architectures for Computation
> Los Alamos National Laboratory
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2555 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20080124/936aaa98/attachment.bin>

More information about the llvm-dev mailing list