[PATCH] D107957: [LegalizeTypes][VP] Add splitting support for binary VP ops
Fraser Cormack via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 20 04:23:07 PDT 2021
frasercrmck added inline comments.
================
Comment at: llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp:1190
+ EVT EVLVT = EVL.getValueType();
+ unsigned HalfMinNumElts = VecVT.getVectorMinNumElements() / 2;
+ SDValue HalfNumElts =
----------------
RKSimon wrote:
> Should we need to assert this isKnownEven like we do in EVT::getHalfNumVectorElementsVT ?
I was unsure. For some reason I was under the impression that `SplitVecRes_BinOp` and splitting in general could only be called on even-sized vectors. And because `VecVT` is the result type of the split node in question, we know it's even. Is that not the case?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D107957/new/
https://reviews.llvm.org/D107957
More information about the llvm-commits
mailing list