[PATCH] D97299: [IR][SVE] Add new llvm.experimental.stepvector intrinsic
Bin Cheng via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Mar 13 08:38:52 PST 2021
bin.cheng-ali added inline comments.
================
Comment at: llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp:1634-1636
+ SDValue EltCnt = DAG.getVScale(
+ dl, EltVT,
+ APInt(EltVT.getScalarSizeInBits(), LoVT.getVectorMinNumElements()));
----------------
paulwalker-arm wrote:
> I guess there's no action required for this patch as fixed length vectors are currently excluded, however, if this idiom becomes common then I suggest creating a DAG.getElementCountAsNode(EVT) like function. That way code like this will just work for both fixed and scalable vectors.
My question is if it should become common? I mean if fixed length vector can be handled more efficiently, shall we always lower and handle fixed/scalable length differently, rather than handle them simultaneously in more and more functions, which has no obvious benefit?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D97299/new/
https://reviews.llvm.org/D97299
More information about the llvm-commits
mailing list