Tells the compiler the mode in which to speculate on floating-point operations.
Linux: | -fp-speculation=mode |
Windows: | /Qfp-speculation:mode |
mode |
Is the mode for floating-point operations. Possible values are:
|
-fp-speculation=fast |
The compiler speculates on floating-point operations. This is also the behavior when optimizations are enabled. However, if you specify no optimizations (-O0), the default changes to -fp-speculation=safe (Linux) and /Qfp-speculation:safe (Windows). |
This option tells the compiler the mode in which to speculate on floating-point operations.
Disabling speculation may prevent the vectorization of some loops containing conditionals.
Visual Studio: Floating Point > Floating-Point Speculation
None