[LLVMdev] recreate optimized clang output

Samuel Crow samuraileumas at yahoo.com
Mon Jan 24 10:55:55 PST 2011


Hi Patrick,

You have to tell opt which optimizations you want it to do.  The 
-std-compile-opts option for opt may be what you're looking for.

--Sam


----- Original Message ----
> From: "Hendrix_ at gmx.net" <Hendrix_ at gmx.net>
> To: llvmdev at cs.uiuc.edu
> Sent: Mon, January 24, 2011 12:36:42 PM
> Subject: [LLVMdev] recreate optimized clang output
> 
> Hi,
> 
> I was using "clang  -O3 -S -emit-llvm" got some very optimized  output.
> 
> Then I did "clang -S -emit-llvm" (without optimization) and  wanted to 
>optimized the code in a
> separate pass. The llvm program "opt" did  not do anything.
> 
> How can I invoke the optimizer on some un-optimized  program, possibly showing 
>the output of each optimizer stage?
> I would like to  get a deeper understanding of the optimization  pass.
> 
> Best,
> Patrick
> _______________________________________________
> 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