[PATCH] D87842: [SVE] Use NEON for extract_vector_elt when the index is in range.

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 17 11:23:14 PDT 2020


efriedma added inline comments.


================
Comment at: llvm/lib/Target/AArch64/AArch64ISelLowering.cpp:9051
+        VT == MVT::nxv16i1 || VT == MVT::nxv2f16 || VT == MVT::nxv4f16 ||
+        VT == MVT::nxv2f32 || VT == MVT::nxv2bf16 || VT == MVT::nxv4bf16)
+      return Op;
----------------
I assume we could handle nxv2f16 if we wanted to?  I guess the indexing gets a little more complicated.


================
Comment at: llvm/lib/Target/AArch64/AArch64ISelLowering.cpp:9074
+    return DAG.getNode(ISD::EXTRACT_VECTOR_ELT, DL, Op.getValueType(),
+                       Bottom128, Op.getOperand(1));
+  }
----------------
Is there some reason to do this as custom lowering, as opposed to just writing this directly as an iel pattern?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D87842/new/

https://reviews.llvm.org/D87842



More information about the llvm-commits mailing list