From 0d9144a21eabeef0795046ca07a6c8df17ebe7b0 Mon Sep 17 00:00:00 2001 From: Christopher Tetreault Date: Thu, 23 Apr 2020 13:10:17 -0700 Subject: [PATCH] [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 --- llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp index 7a92c4bf1009c..e40e622f2e388 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(VT)) + TypeVals.push_back(true); break; } }