[TableGen] Use heap allocated arrays instead of vectors for TreePatternNode::Types...
authorCraig Topper <craig.topper@sifive.com>
Wed, 19 Apr 2023 22:22:42 +0000 (15:22 -0700)
committerCraig Topper <craig.topper@sifive.com>
Wed, 19 Apr 2023 22:22:58 +0000 (15:22 -0700)
commitd34125a1a825208b592cfa8f5fc3566303d691a4
treeb151d2e48dd1e5db4885bfd180a917160b7043e5
parent3fb4d458666378965f3179c2f70c423c399839df
[TableGen] Use heap allocated arrays instead of vectors for TreePatternNode::Types and ResultPerm. NFC

These vectors are resized in the constructor and never change size.
We can manually allocate two arrays instead.

This reduces the size of TreePatternNode by removing the
unneeded capacity end pointer fields from the std::vector.
llvm/utils/TableGen/CodeGenDAGPatterns.cpp
llvm/utils/TableGen/CodeGenDAGPatterns.h
llvm/utils/TableGen/DAGISelMatcherGen.cpp