Skip to content

Commit 6e0afb5

Browse files
committed
[ARMMVE] Create fewer temporary SmallVectors
Shrinks clang by 40k.
1 parent a5458bb commit 6e0afb5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/utils/TableGen/MveEmitter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -739,15 +739,15 @@ class IRIntrinsicResult : public Result {
739739
"Intrinsic::ID", "Intrinsic::" + IntrinsicID);
740740
OS << "Builder.CreateCall(CGM.getIntrinsic(" << IntNo;
741741
if (!ParamTypes.empty()) {
742-
OS << ", llvm::SmallVector<llvm::Type *, " << ParamTypes.size() << "> {";
742+
OS << ", {";
743743
const char *Sep = "";
744744
for (auto T : ParamTypes) {
745745
OS << Sep << ParamAlloc.allocParam("llvm::Type *", T->llvmName());
746746
Sep = ", ";
747747
}
748748
OS << "}";
749749
}
750-
OS << "), llvm::SmallVector<Value *, " << Args.size() << "> {";
750+
OS << "), {";
751751
const char *Sep = "";
752752
for (auto Arg : Args) {
753753
OS << Sep << Arg->asValue();

0 commit comments

Comments
 (0)