[llvm] [AArch64] Guard for 128bit vectors in mull combine. (PR #169839)

Nathan Corbyn via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 27 09:00:07 PST 2025


================
@@ -5795,8 +5795,10 @@ SDValue AArch64TargetLowering::LowerMUL(SDValue Op, SelectionDAG &DAG) const {
   if (VT.is64BitVector()) {
     if (N0.getOpcode() == ISD::EXTRACT_SUBVECTOR &&
         isNullConstant(N0.getOperand(1)) &&
+        N0.getOperand(0).getValueType().is128BitVector() &&
         N1.getOpcode() == ISD::EXTRACT_SUBVECTOR &&
-        isNullConstant(N1.getOperand(1))) {
+        isNullConstant(N1.getOperand(1)) &&
+        N1.getOperand(0).getValueType().is128BitVector()) {
----------------
cofibrant wrote:

Ahah--makes sense!

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


More information about the llvm-commits mailing list