[PATCH] D84874: [SVE][CodeGen] Legalisation of INSERT_VECTOR_ELT for scalable vectors
David Sherwood via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 30 00:21:15 PDT 2020
david-arm added inline comments.
================
Comment at: llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp:1451
unsigned IdxVal = CIdx->getZExtValue();
- unsigned LoNumElts = Lo.getValueType().getVectorNumElements();
- if (IdxVal < LoNumElts)
+ unsigned LoNumElts = Lo.getValueType().getVectorElementCount().Min;
+ if (IdxVal < LoNumElts) {
----------------
Maybe call getVectorMinNumElements() instead?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D84874/new/
https://reviews.llvm.org/D84874
More information about the llvm-commits
mailing list