[LLVMdev] Optimization passes

Benjamin Kramer benny.kra at googlemail.com
Thu Nov 10 07:15:37 PST 2011


On 10.11.2011, at 03:08, Larry Gritz wrote:

> Is there a succinct way I can get the full list of which optimization passes are applied, and in what order, for standard clang -O1, -O2, -O3?

$ clang -O3 -mllvm -debug-pass=Structure -x c - < /dev/null

lists the function passes, module passes and codegen passes that clang runs at -O3.

-Ben





More information about the llvm-dev mailing list