<html>
    <head>
      <base href="https://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 --- - Crash in llvm::MachineTraceMetrics::Ensemble::computeCrossBlockCriticalPath" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D24199&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=g327IhSW_7xamkDRjHPZHy8pWUMw226WqfYdAF6xVtU&s=xaiirIKz4jDc4xQfqVV8wpv6zxzS3KCMAH-w-CMaFZg&e=">24199</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Crash in llvm::MachineTraceMetrics::Ensemble::computeCrossBlockCriticalPath
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </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>new bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>rob.lougher@gmail.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>Created <span class=""><a href="attachment.cgi?id=14622" name="attach_14622" title="Test case">attachment 14622</a> <a href="attachment.cgi?id=14622&action=edit" title="Test case">[details]</a></span>
Test case

The attached reduced test case (test.cpp) causes a crash in
llvm::MachineTraceMetrics::Ensemble::computeCrossBlockCriticalPath.

Compile with:

clang test.cpp -c -ffast-math -O3 -g

Stack trace attached.

Manually bisecting indicates that it started with r241515:

--------------------
[x86] extend machine combiner reassociation optimization to SSE scalar adds

Extend the reassociation optimization of <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__reviews.llvm.org_rL240361&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=g327IhSW_7xamkDRjHPZHy8pWUMw226WqfYdAF6xVtU&s=o0NYYko9Tjp64dsTILE-_u769_89-TMVtHUyNnexTo8&e=">http://reviews.llvm.org/rL240361</a>
(D10460)
to SSE scalar FP SP adds in addition to AVX scalar FP SP adds.

With the 'switch' in place, we can trivially add other opcodes and test cases
in
future patches.

Differential Revision: <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__reviews.llvm.org_D10975&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=g327IhSW_7xamkDRjHPZHy8pWUMw226WqfYdAF6xVtU&s=t9AcD7F1QRunRy6YRDqZCH3qKrI_riz_Bhpz9aBxpRA&e=">http://reviews.llvm.org/D10975</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>