[llvm] [AArch64] Utilize `XAR` for certain vector rotates (PR #137629)
David Green via llvm-commits
llvm-commits at lists.llvm.org
Mon May 5 10:54:09 PDT 2025
================
@@ -4558,9 +4558,27 @@ bool AArch64DAGToDAGISel::trySelectXAR(SDNode *N) {
!TLI->isAllActivePredicate(*CurDAG, N1.getOperand(0)))
return false;
- SDValue XOR = N0.getOperand(1);
- if (XOR.getOpcode() != ISD::XOR || XOR != N1.getOperand(1))
- return false;
+ SDValue R1, R2;
+ if (N0.getOperand(1).getOpcode() != ISD::XOR) {
+ if (N0.getOperand(1) != N1.getOperand(1))
+ return false;
----------------
davemgreen wrote:
Should this be in the else branch too, or shared between them?
https://github.com/llvm/llvm-project/pull/137629
More information about the llvm-commits
mailing list