https://bugs.llvm.org/show_bug.cgi?id=46895
Bug ID: 46895
Summary: InstCombine - matchRotate doesn't match constant
rotation amounts
Product: libraries
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: Scalar Optimizations
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
define i64 @rot(i64 %a0) {
%1 = shl i64 %a0, 1
%2 = lshr i64 %a0, 63
%3 = or i64 %1, %2
ret i64 %3
}
I'd expect this to fold to:
define i64 @rot(i64 %a0) {
%1 = tail call i64 @llvm.fshl.i64(i64 %a0, i64 %a0, i64 1)
ret i64 %1
}
--
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