[llvm] [DAG] Add utilities for inserting and extracting low sub-vectors [nfc] (PR #137230)

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 28 03:25:27 PDT 2025


================
@@ -924,6 +924,18 @@ class SelectionDAG {
   /// Example: shuffle A, B, <0,5,2,7> -> shuffle B, A, <4,1,6,3>
   SDValue getCommutedVectorShuffle(const ShuffleVectorSDNode &SV);
 
+  /// Insert SubVec into the lowest sub-vector of Vec.
----------------
RKSimon wrote:

Sorry for the bike shedding - but maybe just getWidenSubvector/getNarrowSubvector and just handle the (INSERT_SUBVECTOR undef, sub, 0) case for getWidenSubvector?

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


More information about the llvm-commits mailing list