[LLVMdev] Gold plugin: emit LLVM after LTO?

Duncan Sands baldrick at free.fr
Tue Jun 4 01:40:38 PDT 2013


Hi Jonas,

On 04/06/13 10:23, Jonas Wagner wrote:
> Hi,
>
> I often use the gold plugin's also-emit-llvm option to verify the final LLVM
> bitcode of a program. However, I realized that the gold plugin generates the
> bitcode file before running LTO optimizations, such that the changes performed
> by LTO are not reflected in the bitcode file.
>
> What is the reason for this behavior?

my guess: if the LTO optimizers crash, this is very helpful for debugging
because it gives you the input to the optimizers.

Ciao, Duncan.

>
> Attached is a patch that would swap the order of the two actions, and cause the
> bitcode file to be emitted after link time optimization. What do people think
> about this?
>
> Best,
> Jonas
>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>




More information about the llvm-dev mailing list