[llvm] [AArch64] Prefer SVE2 for fixed-length i64 [S|U][MIN|MAX] reductions (PR #181161)

Paul Walker via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 16 08:50:29 PST 2026


================
@@ -1898,6 +1897,14 @@ AArch64TargetLowering::AArch64TargetLowering(const TargetMachine &TM,
     setOperationAction(ISD::MUL, MVT::v1i64, Custom);
     setOperationAction(ISD::MUL, MVT::v2i64, Custom);
 
+    if (Subtarget->hasSVE2() || Subtarget->hasSME() ||
----------------
paulwalker-arm wrote:

```suggestion
    if (Subtarget->hasSVE2() || Subtarget->isStreamingSVEAvailable() ||
```
to account for the SME without SVE use case. Same goes for the related checks below.

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


More information about the llvm-commits mailing list