<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - reassociate pass needs to check for function-level fast-ness"
   href="http://llvm.org/bugs/show_bug.cgi?id=21291">21291</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>reassociate pass needs to check for function-level fast-ness
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Scalar Optimizations
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>spatel+llvm@rotateright.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Filing this bug as requested in <a href="http://reviews.llvm.org/D5222">http://reviews.llvm.org/D5222</a> and discussed in
<a href="http://reviews.llvm.org/D5787">http://reviews.llvm.org/D5787</a>.

Currently, the reassociate pass checks for IR-level fast-math-flags (FMF) when
performing optimizations. It should also check function-level attributes to see
if reassociation is allowed.

LTO (and possibly just regular inlining?) creates a scenario where non-fast
instructions could end up in a function that has some level of fast-ness. In
that case, the parent function's attributes apply to whatever was inlined.

The other case where IR level FMF is not currently available is with FP
intrinsics. This is tracked by <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - FP intrinsics need to have fast-math-flags too"
   href="show_bug.cgi?id=21290">bug 21290</a>.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>