diff options
author | Christopher Tetreault <ctetreau@quicinc.com> | 2020-06-23 12:47:37 -0700 |
---|---|---|
committer | Christopher Tetreault <ctetreau@quicinc.com> | 2020-06-23 13:21:40 -0700 |
commit | e6d8636935e13f57b52c7dcf81f5c4576e2446f5 (patch) | |
tree | 7d3b51119ee99815d2aa9fabefb05ba582de258e /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | 52e86797ba687d89a2e9a85c135b7145a5f14739 (diff) | |
download | llvm-e6d8636935e13f57b52c7dcf81f5c4576e2446f5.zip llvm-e6d8636935e13f57b52c7dcf81f5c4576e2446f5.tar.gz llvm-e6d8636935e13f57b52c7dcf81f5c4576e2446f5.tar.bz2 |
[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
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
-rw-r--r-- | llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp index 653d7f9..e9cf5af 100644 --- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp +++ b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp @@ -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); |