[llvm-branch-commits] [llvm] [SelectionDAG] Fold extracts spanning concat operands (PR #200936)
Krzysztof Drewniak via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Jun 2 22:04:54 PDT 2026
================
@@ -27545,6 +27545,69 @@ static SDValue foldExtractSubvectorFromShuffleVector(EVT NarrowVT, SDValue Src,
return DAG.getVectorShuffle(NarrowVT, DL, NewOps[0], NewOps[1], NewMask);
}
+static SDValue foldExtractSubvectorFromConcatVectors(EVT NVT, SDValue V,
+ uint64_t ExtIdx,
+ const SDLoc &DL,
+ SelectionDAG &DAG,
+ bool LegalOperations) {
+ if (V.getOpcode() != ISD::CONCAT_VECTORS)
----------------
krzysz00 wrote:
It looks like this "put the if here" style mirrors `foldExtractSubvectorFromShuffleVector`, but I don't have strong style thoughts on this one
https://github.com/llvm/llvm-project/pull/200936
More information about the llvm-branch-commits
mailing list