[llvm] [AArch64] Optimize vector slide shuffles with zeros to use shift instructions (PR #185170)

via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 16 01:10:08 PDT 2026


================
@@ -15357,6 +15438,24 @@ SDValue AArch64TargetLowering::LowerVECTOR_SHUFFLE(SDValue Op,
                                   DL);
   }
 
+  if (VT.getSizeInBits() == 64) {
----------------
dibrinsofor wrote:

Yes, I think we can support lane independent patterns. The only edge case I can think of is if the mask somehow crosses lane boundary crossing. Do you have any resources or learning about this?

https://github.com/llvm/llvm-project/pull/185170


More information about the llvm-commits mailing list