Skip to content

Ofast to O3

Compare
Choose a tag to compare
@MikaelSlevinsky MikaelSlevinsky released this 14 Jan 21:45
a015672

-Ofast enables -ffast-math, which ignores strict IEEE compliance. This affects the global state for denormal numbers through DAZ (denormals-are-zero) and FTZ (flush-to-zero).
With -fno-protect-parens as well, -Ofast overly aggressively optimizes flops in definitions such as

static FLT X(diff)(FLT x, FLT y) {return x - y;}

resulting in the failure of test_tdc for the past while. It should be possible to reactivate this test now.