<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:spatel+llvm@rotateright.com" title="Sanjay Patel <spatel+llvm@rotateright.com>"> <span class="fn">Sanjay Patel</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - wrong code at -O1 and above on x86_64-linux-gnu in 32-bit mode"
   href="https://llvm.org/bugs/show_bug.cgi?id=30841">bug 30841</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>NEW
           </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 and above on x86_64-linux-gnu in 32-bit mode"
   href="https://llvm.org/bugs/show_bug.cgi?id=30841#c6">Comment # 6</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - wrong code at -O1 and above on x86_64-linux-gnu in 32-bit mode"
   href="https://llvm.org/bugs/show_bug.cgi?id=30841">bug 30841</a>
              from <span class="vcard"><a class="email" href="mailto:spatel+llvm@rotateright.com" title="Sanjay Patel <spatel+llvm@rotateright.com>"> <span class="fn">Sanjay Patel</span></a>
</span></b>
        <pre>Dangers of trying to make better DAG folds noted...

Hopefully fixed with:
<a href="https://reviews.llvm.org/rL285656">https://reviews.llvm.org/rL285656</a>

Thanks, Zhendong!

Note: I skimmed the rest of InstCombiner::SimplifyDemandedUseBits(), and this
appears to be the only case where we need to clear nsw/nuw. 

It would obviously be better if there was some way to share the demanded bits
logic between IR and the DAG.</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>