Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where to find the optimization sequence for clang -OX?

Tags:

llvm

clang

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

like image 388
dalibocai Avatar asked Oct 17 '11 15:10

dalibocai


1 Answers

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.

like image 183
Anton Korobeynikov Avatar answered Sep 28 '22 10:09

Anton Korobeynikov