[llvm-bugs] [Bug 46205] New: Missed optimization: unsigned remainder <= numerator
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Jun 4 11:37:14 PDT 2020
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: unassignedbugs at nondot.org
Reporter: tilkax at gmail.com
CC: llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200604/ecb1bca5/attachment-0001.html>
More information about the llvm-bugs
mailing list