<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:lebedev.ri@gmail.com" title="Roman Lebedev <lebedev.ri@gmail.com>"> <span class="fn">Roman Lebedev</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Instcombine: transform shl(inexact shr(x)) with different constant shifts."
   href="https://bugs.llvm.org/show_bug.cgi?id=37872">bug 37872</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;">Fixed By Commit(s)</td>
           <td>
                
           </td>
           <td>0ac56e8eaaeb41b59a952fa465872f647c930347
           </td>
         </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 - Instcombine: transform shl(inexact shr(x)) with different constant shifts."
   href="https://bugs.llvm.org/show_bug.cgi?id=37872#c5">Comment # 5</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Instcombine: transform shl(inexact shr(x)) with different constant shifts."
   href="https://bugs.llvm.org/show_bug.cgi?id=37872">bug 37872</a>
              from <span class="vcard"><a class="email" href="mailto:lebedev.ri@gmail.com" title="Roman Lebedev <lebedev.ri@gmail.com>"> <span class="fn">Roman Lebedev</span></a>
</span></b>
        <pre>Done in 0ac56e8eaaeb41b59a952fa465872f647c930347.
This doesn't, however, help D46760: we now end up with:

$ ./bin/opt -O3 /tmp/test.ll -o - -S
; ModuleID = '/tmp/test.ll'
source_filename = "/tmp/test.ll"
target datalayout =
"e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

; Function Attrs: nounwind
declare i32 @get_number() local_unnamed_addr #0

; Function Attrs: nounwind
define void @narrow_long_chain_with_udiv_urem(i64* nocapture %result)
local_unnamed_addr #0 {
  %num1 = tail call i32 @get_number(), !range !0
  %num2 = tail call i32 @get_number(), !range !0
  %1 = shl nuw nsw i32 %num1, 6
  %narrow = add nuw nsw i32 %1, %num2
  %2 = and i32 %narrow, 127
  %tmp2 = zext i32 %2 to i64
  %3 = shl nuw nsw i64 %tmp2, 3
  %tmp4 = and i64 %3, 768
  %tmp5 = or i64 %tmp4, %tmp2
  %tmp6 = or i64 %tmp5, 224
  store i64 %tmp6, i64* %result, align 8
  ret void
}

attributes #0 = { nounwind }

!0 = !{i32 0, i32 9945}</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>