<div dir="ltr">Is there any way to provide the inverse? Ie, fast math enabled by default, but disable rcp using the flags for a specific div?</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 28, 2017 at 10:53 AM, Hal Finkel <span dir="ltr"><<a href="mailto:hfinkel@anl.gov" target="_blank">hfinkel@anl.gov</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">
    <p>Hi, Jason,</p>
    <p>You shouldn't need to use UsafeFPMath at all now. Instead, use
      fast-math flags on the relevant instructions. See:
      <a class="m_4738605326428186399moz-txt-link-freetext" href="http://llvm.org/docs/LangRef.html#fast-math-flags" target="_blank">http://llvm.org/docs/LangRef.<wbr>html#fast-math-flags</a></p>
    <p> -Hal<br>
    </p><span class="">
    <div class="m_4738605326428186399moz-cite-prefix">On 06/28/2017 12:29 PM, Jason via
      llvm-dev wrote:<br>
    </div>
    </span><blockquote type="cite"><span class="">
      
      <div dir="ltr">Hi, we generally run our JIT with UnsafeFPMath
        enabled, but there are a few specific instances where a block of
        code needs to follow strict FPMath. Is there a way to
        temporarily override TargetOptions for a specific block of IR?
        <div>
          <div>
            <div><br>
            </div>
            <div><br>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="m_4738605326428186399mimeAttachmentHeader"></fieldset>
      <br>
      </span><pre>______________________________<wbr>_________________
LLVM Developers mailing list
<a class="m_4738605326428186399moz-txt-link-abbreviated" href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>
<a class="m_4738605326428186399moz-txt-link-freetext" href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-dev</a><span class="HOEnZb"><font color="#888888">
</font></span></pre><span class="HOEnZb"><font color="#888888">
    </font></span></blockquote><span class="HOEnZb"><font color="#888888">
    <br>
    <pre class="m_4738605326428186399moz-signature" cols="72">-- 
Hal Finkel
Lead, Compiler Technology and Programming Languages
Leadership Computing Facility
Argonne National Laboratory</pre>
  </font></span></div>

</blockquote></div><br></div>