[llvm] [AArch64] Fix performZExtUZPCombine() DAG combine (PR #183765)

Gaƫtan Bossu via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 2 01:19:54 PST 2026


================
@@ -24348,6 +24357,9 @@ static SDValue performZExtUZPCombine(SDNode *N, SelectionDAG &DAG) {
     if (Op.getOpcode() == ISD::EXTRACT_SUBVECTOR) {
       ExtOffset = Op.getConstantOperandVal(1);
       Op = Op.getOperand(0);
+      // Avoid NVCAST from a scalable vector to a fixed-size one.
+      if (Op.getValueType().isScalableVector())
+        return SDValue();
----------------
gbossu wrote:

Was much easier than I remembered. There's now an extra test and this one fails if you remove the lines above.

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


More information about the llvm-commits mailing list