https://bugs.llvm.org/show_bug.cgi?id=46205
Bug ID: 46205
Summary: Missed optimization: unsigned remainder <= numerator
Product: libraries
Version: trunk
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: Scalar Optimizations
Assignee: unassignedb...@nondot.org
Reporter: til...@gmail.com
CC: llvm-bugs@lists.llvm.org
n % d <= n is always true, but LLVM doesn't optimize it.
https://rise4fun.com/Alive/KDfC
%r = urem i32 %n, %d
%c = icmp ule i32 %r, %n
=>
%c = i1 true
--
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