22 Apr
2013
22 Apr
'13
3:06 p.m.
On 22/04/13 16:03, Andrey Semashev wrote:
I think the argument was that in one regard you point out that we cannot rely on compiler to optimize the code and in the other you suggest the opposite.
Some optimizations are trivial, some require complex analysis and transformation algorithms. I don't think there is anything wrong with relying on the former.
Although I admit that expression transform to FMA is simpler for the compiler to handle, I would still prefer to explicitly spell it out as a function call.
You can still spell it out explicitly if you want to.