[llvm] 0d9144a - [SVE] Remove isScalable from Bitcode
Christopher Tetreault via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 23 13:28:34 PDT 2020
Author: Christopher Tetreault
Date: 2020-04-23T13:28:15-07:00
New Revision: 0d9144a21eabeef0795046ca07a6c8df17ebe7b0
URL: https://github.com/llvm/llvm-project/commit/0d9144a21eabeef0795046ca07a6c8df17ebe7b0
DIFF: https://github.com/llvm/llvm-project/commit/0d9144a21eabeef0795046ca07a6c8df17ebe7b0.diff
LOG: [SVE] Remove isScalable from Bitcode
Reviewers: efriedma, dexonsmith, tejohnson, sdesmalen
Reviewed By: efriedma
Subscribers: tschuett, hiraditya, rkruppe, psnobl, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D77695
Added:
Modified:
llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
index 7a92c4bf1009..e40e622f2e38 100644
--- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
+++ b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
@@ -957,8 +957,8 @@ void ModuleBitcodeWriter::writeTypeTable() {
Code = bitc::TYPE_CODE_VECTOR;
TypeVals.push_back(VT->getNumElements());
TypeVals.push_back(VE.getTypeID(VT->getElementType()));
- if (VT->isScalable())
- TypeVals.push_back(VT->isScalable());
+ if (isa<ScalableVectorType>(VT))
+ TypeVals.push_back(true);
break;
}
}
More information about the llvm-commits
mailing list