[llvm-dev] [RFC] FP Contract = fast?

Hal Finkel via llvm-dev llvm-dev at lists.llvm.org
Wed Mar 15 09:52:30 PDT 2017


On 03/15/2017 11:39 AM, Stephen Canon wrote:
> We should default to pragma STDC FP_CONTRACT ON, not ‘fast’.
>
> ‘on’ is the most aggressive mode that conforms to C11. ‘fast’ should 
> be opt-in (like ‘fast-math’ is).

Why? Other compilers default to 'fast', and 'on' does not play well with 
C++ code (where inlining is really important, and so the statement 
boundaries that restrict contraction encourage bad coding style).

  -Hal

>
> – Steve
>
>> On Mar 15, 2017, at 12:35 PM, Renato Golin via llvm-dev 
>> <llvm-dev at lists.llvm.org <mailto:llvm-dev at lists.llvm.org>> wrote:
>>
>> Right, I also agree to follow the principle of least surprise, we
>> should default to "fast". Let's just make sure the infrastructure
>> isn't going to crumble and do it.
>

-- 
Hal Finkel
Lead, Compiler Technology and Programming Languages
Leadership Computing Facility
Argonne National Laboratory

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170315/209eaffc/attachment.html>


More information about the llvm-dev mailing list