[PATCH] D126201: [WIP] Very early work to enable isel of fixed length vector extracts from scalable vectors.

Allen zhong via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 14 01:45:25 PDT 2022


Allen added inline comments.


================
Comment at: llvm/include/llvm/Target/TargetSelectionDAG.td:272
+def SDTSubVecExtract2 : SDTypeProfile<1, 2, [// subvector extract
+    SDTCisVec<0>, SDTCisVec<1>, SDTCisInt<2>
+]>;
----------------
hi @paulwalker-arm:
   I'm not familiar with the def, do you mean **SDTCisVec<0>** and **SDTCisInt<2>** have different type, so this is guard with **A.isScalable() != B.isScalable() **? thanks.


================
Comment at: llvm/lib/Target/AArch64/AArch64SVEInstrInfo.td:1425
 
+  // Extract fixed length subvector from FP SVE vectors
+  def : Pat<(v2f32 (extract_subvector2 (nxv2f32 ZPR:$Zs), (i64 0))),
----------------
hi, @paulwalker-arm:
   do you still working on it, may be it need more pattern to match above commented pattten?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D126201



More information about the llvm-commits mailing list