zlacker

[parent] [thread] 1 comments
1. the847+(OP)[view] [source] 2024-01-23 23:03:57
Usually one wants a subset of the thing that -ffast-math does, e.g. -fassociative-math. And only within some limited scope.
replies(1): >>camel-+u1
2. camel-+u1[view] [source] 2024-01-23 23:12:41
>>the847+(OP)
I 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.

[go to top]