[all-commits] [llvm/llvm-project] d34125: [TableGen] Use heap allocated arrays instead of ve...
Craig Topper via All-commits
all-commits at lists.llvm.org
Wed Apr 19 15:23:22 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d34125a1a825208b592cfa8f5fc3566303d691a4
https://github.com/llvm/llvm-project/commit/d34125a1a825208b592cfa8f5fc3566303d691a4
Author: Craig Topper <craig.topper at sifive.com>
Date: 2023-04-19 (Wed, 19 Apr 2023)
Changed paths:
M llvm/utils/TableGen/CodeGenDAGPatterns.cpp
M llvm/utils/TableGen/CodeGenDAGPatterns.h
M llvm/utils/TableGen/DAGISelMatcherGen.cpp
Log Message:
-----------
[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.
More information about the All-commits
mailing list