https://bugs.llvm.org/show_bug.cgi?id=45666
Bug ID: 45666
Summary: [InstCombine] reduce icmp ult with or operand
Product: libraries
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: Scalar Optimizations
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
define i1 @cmp_or_limit(i8 %x) {
%or = or i8 %x, 5
%cmp = icmp ult i8 %or, 43
ret i1 %cmp
}
This can reduce to:
define i1 @cmp_or_limit(i8 %x) {
%R = icmp ult i8 %x, 40
ret i1 %R
}
http://volta.cs.utah.edu:8080/z/k3sykE
I think there's some leading zeros + masking relationship for those constants
that we're not getting.
The old Alive lets us specify constant preconditions. Is there an equivalent
with Alive2?
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs