<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:listmail@philipreames.com" title="listmail@philipreames.com">listmail@philipreames.com</a>
</span> changed
          <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - wrong code at -O1, -Os and -O2 (but not -O3) on x86_64-linux-gnu (generated code hangs)"
   href="https://bugs.llvm.org/show_bug.cgi?id=52276">bug 52276</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>CONFIRMED
           </td>
           <td>RESOLVED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>FIXED
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - wrong code at -O1, -Os and -O2 (but not -O3) on x86_64-linux-gnu (generated code hangs)"
   href="https://bugs.llvm.org/show_bug.cgi?id=52276#c3">Comment # 3</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - wrong code at -O1, -Os and -O2 (but not -O3) on x86_64-linux-gnu (generated code hangs)"
   href="https://bugs.llvm.org/show_bug.cgi?id=52276">bug 52276</a>
              from <span class="vcard"><a class="email" href="mailto:listmail@philipreames.com" title="listmail@philipreames.com">listmail@philipreames.com</a>
</span></b>
        <pre>Should be fixed by:

commit f82cf6187fbe9584ba0a8d9bf4d703498df249e6 (HEAD -> main, origin/main)
Author: Philip Reames <<a href="mailto:listmail@philipreames.com">listmail@philipreames.com</a>>
Date:   Mon Oct 25 09:25:00 2021 -0700

    [indvars] Fix pr52276 (missing one use check)

    The recently added logic to canonicalize exit conditions to unsigned relies
on facts which hold about the use (i.e. exit test).  Applying this blindly to
the icmp is not legal, as there may be another use which never reaches the
exit.  Restrict ourselves to case where we have a single use.

Please reopen if needed.  I confirmed the reduced test case was fixed, but not
the original C example.</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>