forked from OSchip/llvm-project
[SVE] Remove calls to VectorType::getNumElements from Bitcode
Reviewers: efriedma, evgeny777, tejohnson, david-arm, kmclaughlin Reviewed By: david-arm Subscribers: tschuett, hiraditya, rkruppe, psnobl, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D82209
This commit is contained in:
parent
52e86797ba
commit
e6d8636935
|
@ -961,7 +961,7 @@ void ModuleBitcodeWriter::writeTypeTable() {
|
|||
// VECTOR [numelts, eltty] or
|
||||
// [numelts, eltty, scalable]
|
||||
Code = bitc::TYPE_CODE_VECTOR;
|
||||
TypeVals.push_back(VT->getNumElements());
|
||||
TypeVals.push_back(VT->getElementCount().Min);
|
||||
TypeVals.push_back(VE.getTypeID(VT->getElementType()));
|
||||
if (isa<ScalableVectorType>(VT))
|
||||
TypeVals.push_back(true);
|
||||
|
|
Loading…
Reference in New Issue