<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </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 - [postmisched] wrong code generated after post-mi scheduling"
   href="https://bugs.llvm.org/show_bug.cgi?id=51711">51711</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[postmisched] wrong code generated after post-mi scheduling
          </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>Linux
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>Common Code Generator Code
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>wweiandrew@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>before post-ra scheduling:
...
renamable $w17 = ANDSWri renamable $w6, 15, implicit-def dead $nzcv
$w18 = SUBSWrs renamable $w13, renamable $w14, 0, implicit-def $nzcv,
implicit-def dead $nzcv
...
renamable $w11 = ANDSWri killed renamable $w2, 0, implicit-def $nzcv
renamable $w9 = CSINCWr killed renamable $w8, renamable $w8, 0, implicit killed
$nzcv
...

after post-ra scheduling:
...
$w18 = SUBSWrs renamable $w13, renamable $w14, 0, implicit-def $nzcv,
implicit-def dead $nzcv
...
renamable $w11 = ANDSWri killed renamable $w2, 0, implicit-def $nzcv
renamable $w17 = ANDSWri renamable $w6, 15, implicit-def dead $nzcv
renamable $w9 = CSINCWr killed renamable $w8, renamable $w8, 0, implicit killed
$nzcv
...

"renamable $w17 = ANDSWri renamable $w6, 15, implicit-def dead $nzcv" was wrong
scheduled, because "implicit-def dead $nzcv" in this inst will break the true
dependence between "renamable $w11 = ..." and   "renamable $w9 = ..."</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>