[llvm] [NFC][AArch64][SVE] Rename variables in partial reduction lowering functions (PR #120589)

Sander de Smalen via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 20 00:52:28 PST 2024


================
@@ -21822,32 +21820,32 @@ SDValue tryLowerPartialReductionToWideAdd(SDNode *N,
 
   SDLoc DL(N);
 
-  auto Acc = N->getOperand(1);
-  auto ExtInput = N->getOperand(2);
+  auto A = N->getOperand(1);
+  auto ExtB = N->getOperand(2);
 
-  EVT AccVT = Acc.getValueType();
-  EVT AccElemVT = AccVT.getVectorElementType();
+  EVT AVT = A.getValueType();
+  EVT AElemVT = AVT.getVectorElementType();
 
-  if (ExtInput.getValueType().getVectorElementType() != AccElemVT)
+  if (ExtB.getValueType().getVectorElementType() != AElemVT)
----------------
sdesmalen-arm wrote:

```
  if (!ISD::isExtOpcode(N->getOperand(2).getOpcode())
    return SDValue();
  SDValue Acc = N->getOperand(1);
  SDValue Ext = N->getOperand(2);
  EVT AccVT = Acc.getValueType();
  EVT ExtVT = Ext.getValueType();
  if (!ExtVT.getVectorElementType() != AccVT.getVectorElementType())
    return SDValue();
```

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


More information about the llvm-commits mailing list