[LLVMdev] OPT optimizations

Tobias Grosser grosser at fim.uni-passau.de
Fri Jan 21 21:17:08 PST 2011


On 01/21/2011 11:48 PM, Surinder wrote:
> Hi,
>
> OPT documentation mentions optimization options -O1,-O2 and -O3 etc.
> (I am using -O0, no optimizations). The documentation does not tell
> you what optimizations are included in each option.  It says they are
> same as gcc.  gcc dodoc is not of much help either.  Where can I find
> this information.

Just call

opt -O3 -debug-pass=Arguments program.ll

which prints the list of passes executed.

Cheers
Tobi



More information about the llvm-dev mailing list