[PATCH] D134718: [LegalizeTypes] Use getVectorElementCount to avoid crash of scalable vector.
Jianjian Guan via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 28 00:00:57 PDT 2022
jacquesguan added a comment.
In D134718#3817513 <https://reviews.llvm.org/D134718#3817513>, @RKSimon wrote:
> test cases?
Done.
================
Comment at: llvm/lib/CodeGen/SelectionDAG/LegalizeTypesGeneric.cpp:211
SDValue OldVec = N->getOperand(0);
- unsigned OldElts = OldVec.getValueType().getVectorNumElements();
+ auto OldEltCount = OldVec.getValueType().getVectorElementCount();
EVT OldEltVT = OldVec.getValueType().getVectorElementType();
----------------
RKSimon wrote:
> auto -> ElementCount
Done.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D134718/new/
https://reviews.llvm.org/D134718
More information about the llvm-commits
mailing list