[llvm] [AArch64] Remove all instances of the 'hasSVEorSME' interfaces. (PR #96543)

Paul Walker via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 25 02:27:15 PDT 2024


================
@@ -4359,7 +4359,9 @@ bool AArch64DAGToDAGISel::trySelectXAR(SDNode *N) {
   //   N1 = SRL_PRED true, V, splat(imm)  --> rotr amount
   //   N0 = SHL_PRED true, V, splat(bits-imm)
   //   V = (xor x, y)
-  if (VT.isScalableVector() && Subtarget->hasSVE2orSME()) {
+  if (VT.isScalableVector() &&
+      (Subtarget->hasSVE2() ||
+       (Subtarget->hasSME() && Subtarget->isStreaming()))) {
----------------
paulwalker-arm wrote:

Given the size of SVE2 perhaps this will become common enough to warrant implementing `isSVE2orStreamingSVEAvailable()`?

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


More information about the llvm-commits mailing list