diff options
author | Nico Weber <nicolasweber@gmx.de> | 2019-06-09 19:27:50 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2019-06-09 19:27:50 +0000 |
commit | 80fee25776c2fb61e74c1ecb1a523375c2500b69 (patch) | |
tree | b21416d6a0878d1c17c48f65c4872d44671809bf /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | dcf5e6abdf0c122edef0ece6d32b039455120c78 (diff) | |
download | bcm5719-llvm-80fee25776c2fb61e74c1ecb1a523375c2500b69.tar.gz bcm5719-llvm-80fee25776c2fb61e74c1ecb1a523375c2500b69.zip |
Revert r361953 "[SVE][IR] Scalable Vector IR Type"
This reverts commit f4fc01f8dd3a5dfd2060d1ad0df6b90e8351ddf7.
It caused a 3-4x slowdown when doing thinlto links, PR42210.
llvm-svn: 362913
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
-rw-r--r-- | llvm/lib/Bitcode/Reader/BitcodeReader.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp index c33fc568abe..49de70e26de 100644 --- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp +++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp @@ -1775,8 +1775,7 @@ Error BitcodeReader::parseTypeTableBody() { return error("Invalid type"); ResultTy = ArrayType::get(ResultTy, Record[0]); break; - case bitc::TYPE_CODE_VECTOR: // VECTOR: [numelts, eltty] or - // [numelts, eltty, scalable] + case bitc::TYPE_CODE_VECTOR: // VECTOR: [numelts, eltty] if (Record.size() < 2) return error("Invalid record"); if (Record[0] == 0) @@ -1784,8 +1783,7 @@ Error BitcodeReader::parseTypeTableBody() { ResultTy = getTypeByID(Record[1]); if (!ResultTy || !StructType::isValidElementType(ResultTy)) return error("Invalid type"); - bool Scalable = Record.size() > 2 ? Record[2] : false; - ResultTy = VectorType::get(ResultTy, Record[0], Scalable); + ResultTy = VectorType::get(ResultTy, Record[0]); break; } |