<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 06/28/2017 01:48 PM, Jason wrote:<br>
    </div>
    <blockquote
cite="mid:CAAy+6_GoeDG+U_XznznxbMHYEjvPCggf3466U61QAYsGEObwFg@mail.gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <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>
    </blockquote>
    <br>
    No, but you can enable fast-math flags by default in the IRBuilder
    (by calling setFastMathFlags).<br>
    <br>
     -Hal<br>
    <br>
    <blockquote
cite="mid:CAAy+6_GoeDG+U_XznznxbMHYEjvPCggf3466U61QAYsGEObwFg@mail.gmail.com"
      type="cite">
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Wed, Jun 28, 2017 at 10:53 AM, Hal
          Finkel <span dir="ltr"><<a moz-do-not-send="true"
              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 moz-do-not-send="true"
                  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 moz-do-not-send="true" class="m_4738605326428186399moz-txt-link-abbreviated" href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>
<a moz-do-not-send="true" 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">
    

    <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>
</div>



</blockquote>
<pre class="moz-signature" cols="72">-- 
Hal Finkel
Lead, Compiler Technology and Programming Languages
Leadership Computing Facility
Argonne National Laboratory</pre></body></html>