I recently started working with Clang/LLVM and would like to know if there is any particular documentation on what the -Ox optimization levels do?
I couldn't find much on the LLVM documentation page. Can someone share a few links?
Thanks.
I recently started working with Clang/LLVM and would like to know if there is any particular documentation on what the -Ox optimization levels do?
I couldn't find much on the LLVM documentation page. Can someone share a few links?
Thanks.
Clang's command-line options documentation is indeed very poor, and in particular you are correct that there's almost no explanation of what the optimizations level do.
FreeBSD, however, does add a man page with a useful summary:
If you're looking to find the exact list of passes performed for each optimization, see this Stackoverflow question: