[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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user