[llvm] [RISCV][ISel] Combine scalable vector add/sub/mul with zero/sign extension (PR #72340)

via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 15 00:17:58 PST 2023


================
@@ -12764,6 +12801,15 @@ struct NodeExtensionHelper {
   /// Check if \p Root supports any extension folding combines.
   static bool isSupportedRoot(const SDNode *Root) {
     switch (Root->getOpcode()) {
+    case ISD::ADD:
+    case ISD::SUB:
+    case ISD::MUL: {
+      EVT VT0 = Root->getOperand(0).getValueType();
+      EVT VT1 = Root->getOperand(1).getValueType();
+      if (VT0.isFixedLengthVector() || VT0.isFixedLengthVector())
----------------
qcolombet wrote:

Typo: VT0 => VT1

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


More information about the llvm-commits mailing list