2 ms·
Usually one wants a subset of the thing that -ffast-math does, e.g. -fassociative-math. And only within some limited scope.
by the8472 3y ago
Usually one wants a subset of the thing that -ffast-math does, e.g. -fassociative-math. And only within some limited scope.
- camel-cdr 3y agoI played around with the example a bit, the minimum for vectorization seems to be -fassociative-math -fno-signed-zeros. The gcc docs say -fassociative-math requries -fno-signed-zeros and -fno-trapping-math though. I suppose -fassociative-math -fno-signed-zeros -fno-trapping-math -freciprocal-math will get you most of the way there, and maybe an -ffinite-math-only when appropriate.