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: unassignedb...@nondot.org
Reporter: david.bolvan...@gmail.com
CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs