Proposal Raised To Deprecate "-Ofast" For The LLVM/Clang Compiler
![LLVM](/assets/categories/llvm.webp)
The -Ofast option on GCC and LLVM/Clang take -O3 but additionally tack on -ffast-math. The fast math option breaks IEEE standards compliance to increase performance. This runs the risk of potentially unsafe math around floating point operations.
Due to the non-conformant math potentially occurring and for some users the "-Ofast" option may not be aware of such risks, LLVM developers are considering whether this aggressive optimization level should be deprecated and/or just alias -O3.
James Knight with Google raised the proposal on the LLVM Discourse. So far those responding are in favor of the idea for effectively deprecating LLVM/Clang's -Ofast optimization.
20 Comments