Meaning of the LLVM Optimization Levels
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. Oak 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 : -O0 -O1 -O2 -Os -Oz -O3 -O4 Specify which optimization level to use. -O0 means "no optimization": this level compiles the