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? -- Larry Gritz lg at larrygritz.com
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
Try adding the flags -mllvm --debug-pass=Structure when compiling a file with clang at the desired optimization level. On 10/11/11 02: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? > > -- > Larry Gritz > lg at larrygritz.com > > > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev-- Richard Osborne | XMOS http://www.xmos.com