From 6e0afb5f108fe0570268978f4b32a0c8b4a43ee1 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Sun, 29 Mar 2020 22:30:06 +0200 Subject: [PATCH] [ARMMVE] Create fewer temporary SmallVectors Shrinks clang by 40k. --- clang/utils/TableGen/MveEmitter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clang/utils/TableGen/MveEmitter.cpp b/clang/utils/TableGen/MveEmitter.cpp index f53c603..36aa753 100644 --- a/clang/utils/TableGen/MveEmitter.cpp +++ b/clang/utils/TableGen/MveEmitter.cpp @@ -739,7 +739,7 @@ public: "Intrinsic::ID", "Intrinsic::" + IntrinsicID); OS << "Builder.CreateCall(CGM.getIntrinsic(" << IntNo; if (!ParamTypes.empty()) { - OS << ", llvm::SmallVector {"; + OS << ", {"; const char *Sep = ""; for (auto T : ParamTypes) { OS << Sep << ParamAlloc.allocParam("llvm::Type *", T->llvmName()); @@ -747,7 +747,7 @@ public: } OS << "}"; } - OS << "), llvm::SmallVector {"; + OS << "), {"; const char *Sep = ""; for (auto Arg : Args) { OS << Sep << Arg->asValue(); -- 2.7.4