[llvm-bugs] [Bug 51722] New: LoopIdiom regression: ctlz no longer recognized

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Sep 2 11:46:57 PDT 2021


https://bugs.llvm.org/show_bug.cgi?id=51722

            Bug ID: 51722
           Summary: LoopIdiom regression: ctlz no longer recognized
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Scalar Optimizations
          Assignee: unassignedbugs at nondot.org
          Reporter: david.bolvansky at gmail.com
                CC: llvm-bugs at lists.llvm.org

unsigned long long FIO_highbit64(unsigned long long v)
{
    unsigned  count = 0;
    v >>= 1;
    while (v) { v >>= 1; count++; }
    return count;
}

Since LLVM 13, we lost recognized "@llvm.ctlz.i64".

https://godbolt.org/z/nodKdfab4

-- 
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/20210902/26d6bd22/attachment.html>


More information about the llvm-bugs mailing list