dalibocai
dalibocai

Reputation: 2347

Where to find the optimization sequence for clang -OX?

Where can I find the sequence of optimizations used by clang according to -OX?

Upvotes: 9

Views: 12444

Answers (1)

Anton Korobeynikov
Anton Korobeynikov

Reputation: 9324

clang executes the precisely same sequence of passes as opt -ON. So, you can do something like

llvm-as < /dev/null | opt -O3 -disable-output -debug-pass=Arguments 

to derive the "full" set of passes which are run at O3.

Upvotes: 17

Related Questions