[llvm] [AArch64] Lower disjoint_or+not to eon. (PR #147279)
David Sherwood via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 7 06:28:00 PDT 2025
================
@@ -30,3 +30,24 @@ entry:
%shl2 = shl i64 %xor, %xor1
ret i64 %shl2
}
+
+; Check that eon is generated if the xor is a disjoint or.
+define i64 @disjoint_or(i64 %a, i64 %b) {
+; CHECK-LABEL: disjoint_or:
+; CHECK: eon
+; CHECK: ret
+ %or = or disjoint i64 %a, %b
----------------
david-arm wrote:
Ah ok, I see. Thanks for explaining - sorry I wasn't trying to create a lot more work for you unnecessarily! I'll be honest I hadn't really put too much thought into it - perhaps the `disjoint` is most frequently found on scalar operations?
https://github.com/llvm/llvm-project/pull/147279
More information about the llvm-commits
mailing list