https://bugs.llvm.org/show_bug.cgi?id=52547
Bug ID: 52547
Summary: [InstCombine] missed fold of icmp-of-casted-shift
Product: libraries
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: Scalar Optimizations
Assignee: unassignedb...@nondot.org
Reporter: spatel+l...@rotateright.com
CC: llvm-bugs@lists.llvm.org
Forking this off from bug 52543 - we may be able to generalize this further for
other constant values, but here's a missed sub-pattern based on that test:
define i1 @src(i32 %a) {
%shl = shl i32 1, %a
%t = trunc i32 %shl to i8
%r = icmp eq i8 %t, 0
ret i1 %r
}
define i1 @tgt(i32 %a) {
%r = icmp ugt i32 %a, 7
ret i1 %r
}
https://alive2.llvm.org/ce/z/mmkPup
And the 'ne' sibling:
https://alive2.llvm.org/ce/z/ftWEQz
--
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