Where to find the optimization sequence for clang -OX?

落花浮王杯 提交于 2019-11-26 23:15:49

问题


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


回答1:


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.



来源:https://stackoverflow.com/questions/7796151/where-to-find-the-optimization-sequence-for-clang-ox

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!