summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/AsmWriter.cpp
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2019-06-27 13:55:02 +0000
committerHans Wennborg <hans@hanshq.net>2019-06-27 13:55:02 +0000
commit408fc0849ea1f630baa85d5bf78ee359c52585e1 (patch)
treedbfa29e95e14e44ac8b3760553a47285cf73d5d5 /llvm/lib/IR/AsmWriter.cpp
parenta0d45058ebb39dc18cbcdcba01d11d36eca001be (diff)
downloadbcm5719-llvm-408fc0849ea1f630baa85d5bf78ee359c52585e1.tar.gz
bcm5719-llvm-408fc0849ea1f630baa85d5bf78ee359c52585e1.zip
Revert r363658 "[SVE][IR] Scalable Vector IR Type with pr42210 fix"
We saw a 70% ThinLTO link time increase in Chromium for Android, see crbug.com/978817. Sounds like more of PR42210. > Recommit of D32530 with a few small changes: > - Stopped recursively walking through aggregates in > the verifier, so that we don't impose too much > overhead on large modules under LTO (see PR42210). > - Changed tests to match; the errors are slightly > different since they only report the array or > struct that actually contains a scalable vector, > rather than all aggregates which contain one in > a nested member. > - Corrected an older comment > > Reviewers: thakis, rengolin, sdesmalen > > Reviewed By: sdesmalen > > Differential Revision: https://reviews.llvm.org/D63321 llvm-svn: 364543
Diffstat (limited to 'llvm/lib/IR/AsmWriter.cpp')
-rw-r--r--llvm/lib/IR/AsmWriter.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/IR/AsmWriter.cpp b/llvm/lib/IR/AsmWriter.cpp
index 402a1bd9df5..ca7afd0d81a 100644
--- a/llvm/lib/IR/AsmWriter.cpp
+++ b/llvm/lib/IR/AsmWriter.cpp
@@ -620,10 +620,7 @@ void TypePrinting::print(Type *Ty, raw_ostream &OS) {
}
case Type::VectorTyID: {
VectorType *PTy = cast<VectorType>(Ty);
- OS << "<";
- if (PTy->isScalable())
- OS << "vscale x ";
- OS << PTy->getNumElements() << " x ";
+ OS << "<" << PTy->getNumElements() << " x ";
print(PTy->getElementType(), OS);
OS << '>';
return;
OpenPOWER on IntegriCloud