[llvm] [AArch64] Use isKnownNonZero to optimize eligible compares to cmn (PR #96349)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 28 07:00:13 PDT 2024
================
@@ -258,3 +258,34 @@ define i32 @neg_range_int(i32 %a, i32 %b, i32 %c) {
ret i32 %retval.0
}
+; (b > -3 || a < -(c | 1))
+define i32 @neg_range_int_cmn(i32 %a, i32 %b, i32 %c) {
----------------
AtariDreams wrote:
It is and I am investigating
https://github.com/llvm/llvm-project/pull/96349
More information about the llvm-commits
mailing list