<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Oct 3, 2017 at 4:03 AM, Hal Finkel via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"><span class="">
<p>On 10/02/2017 11:10 AM, Bruce Hoult via
llvm-dev wrote:<br></p>
<blockquote type="cite">
<div dir="ltr">-cl-fast-relaxed-math<br></div></blockquote></span><span class=""><blockquote type="cite"><div dir="ltr"><div>
<div>Sets the optimization options -cl-finite-math-only and
-cl-unsafe-math-optimizations. This allows optimizations for
floating-point arithmetic that may violate the IEEE 754
standard and the OpenCL numerical compliance requirements
for single precision and double precision floating-point, as
well as floating point edge case behavior. This option also
relaxes the precision of commonly used math functions. This
option causes the preprocessor macro __FAST_RELAXED_MATH__
to be defined in the OpenCL program. The original and
modified values are defined in the SPIR-V OpenCL environment
specification</div>
</div>
<div><br>
</div>
<div>I'd like to emphasise in the latter one: "This option also
relaxes the precision of commonly used math functions."</div>
</div>
</blockquote>
</span>Isn't this the "libm" flag that is proposed in this thread?<br></div></blockquote><div> </div><div>I don't know. I didn't see any definition of it.</div><div><br></div><div>In my case I'm talking about allowing the use of lower precision but very fast machine instructions instead of a slow sequence of inline instructions. But I guess instruction vs library is equivalent.</div><div><br></div></div></div></div>