[clang] 6e0afb5 - [ARMMVE] Create fewer temporary SmallVectors

Benjamin Kramer via cfe-commits cfe-commits at lists.llvm.org
Sun Mar 29 13:31:40 PDT 2020


Author: Benjamin Kramer
Date: 2020-03-29T22:31:26+02:00
New Revision: 6e0afb5f108fe0570268978f4b32a0c8b4a43ee1

URL: https://github.com/llvm/llvm-project/commit/6e0afb5f108fe0570268978f4b32a0c8b4a43ee1
DIFF: https://github.com/llvm/llvm-project/commit/6e0afb5f108fe0570268978f4b32a0c8b4a43ee1.diff

LOG: [ARMMVE] Create fewer temporary SmallVectors

Shrinks clang by 40k.

Added: 
    

Modified: 
    clang/utils/TableGen/MveEmitter.cpp

Removed: 
    


################################################################################
diff  --git a/clang/utils/TableGen/MveEmitter.cpp b/clang/utils/TableGen/MveEmitter.cpp
index f53c6036766a..36aa7534aafa 100644
--- a/clang/utils/TableGen/MveEmitter.cpp
+++ b/clang/utils/TableGen/MveEmitter.cpp
@@ -739,7 +739,7 @@ class IRIntrinsicResult : public Result {
         "Intrinsic::ID", "Intrinsic::" + IntrinsicID);
     OS << "Builder.CreateCall(CGM.getIntrinsic(" << IntNo;
     if (!ParamTypes.empty()) {
-      OS << ", llvm::SmallVector<llvm::Type *, " << ParamTypes.size() << "> {";
+      OS << ", {";
       const char *Sep = "";
       for (auto T : ParamTypes) {
         OS << Sep << ParamAlloc.allocParam("llvm::Type *", T->llvmName());
@@ -747,7 +747,7 @@ class IRIntrinsicResult : public Result {
       }
       OS << "}";
     }
-    OS << "), llvm::SmallVector<Value *, " << Args.size() << "> {";
+    OS << "), {";
     const char *Sep = "";
     for (auto Arg : Args) {
       OS << Sep << Arg->asValue();


        


More information about the cfe-commits mailing list