Where to find the optimization sequence for clang -OX?

后端 未结 1 1572
春和景丽
春和景丽 2020-12-06 06:51

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

相关标签:
1条回答
  • 2020-12-06 07:49

    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.

    0 讨论(0)
提交回复
热议问题