[llvm-bugs] [Bug 48744] New: [InstCombine] x*3/4 > x not simplified
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Jan 13 12:29:41 PST 2021
https://bugs.llvm.org/show_bug.cgi?id=48744
Bug ID: 48744
Summary: [InstCombine] x*3/4 > x not simplified
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Scalar Optimizations
Assignee: unassignedbugs at nondot.org
Reporter: nikita.ppv at gmail.com
CC: llvm-bugs at lists.llvm.org
Missing fold:
define i1 @src(i32 %x) {
%m = mul nuw i32 %x, 3
%d = lshr i32 %m, 2
%c = icmp ugt i32 %d, %x
ret i1 %c
}
define i1 @tgt(i32 %x) {
ret i1 false
}
https://llvm.godbolt.org/z/6z99v8
https://alive2.llvm.org/ce/z/mnzcKx
--
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/20210113/8f8c016d/attachment.html>
More information about the llvm-bugs
mailing list