[llvm-bugs] [Bug 28426] umulll_overflow with constant powers of two are not well optimized

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Aug 17 04:58:53 PDT 2021


Simon Pilgrim <llvm-dev at redking.me.uk> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
                 CC|                            |listmail at philipreames.com,
                   |                            |llvm-dev at redking.me.uk
          Component|Backend: X86                |Scalar Optimizations
 Fixed By Commit(s)|                            |2cd23eb2438238b1297ff7b4368
                   |                            |d673c449ff24f

--- Comment #3 from Simon Pilgrim <llvm-dev at redking.me.uk> ---

This was fixed in D104665/rG2cd23eb24382

define i1 @k(i64 %0) {
  %2 = icmp ugt i64 %0, 4611686018427387903
  ret i1 %2

k(unsigned long long):                                  # @k(unsigned long
        shr     rdi, 62
        setne   al

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210817/5c3f7ad4/attachment.html>

More information about the llvm-bugs mailing list