summaryrefslogtreecommitdiff
path: root/utils/TableGen/DAGISelMatcher.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-02-24 07:31:45 +0000
committerChris Lattner <sabre@nondot.org>2010-02-24 07:31:45 +0000
commit19b5a7590b784f19875b9880ea8838c393431656 (patch)
treea72bfb5c816b6e8751d7e9b76b904b1ff53f4871 /utils/TableGen/DAGISelMatcher.cpp
parent91c6a822baaba3cb2def94224115e57b84805347 (diff)
downloadllvm-19b5a7590b784f19875b9880ea8838c393431656.tar.gz
llvm-19b5a7590b784f19875b9880ea8838c393431656.tar.bz2
llvm-19b5a7590b784f19875b9880ea8838c393431656.tar.xz
implement a simple proof-of-concept optimization for
the new isel: fold movechild+record+moveparent into a single recordchild N node. This shrinks the X86 table from 125443 to 117502 bytes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97031 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/DAGISelMatcher.cpp')
-rw-r--r--utils/TableGen/DAGISelMatcher.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/utils/TableGen/DAGISelMatcher.cpp b/utils/TableGen/DAGISelMatcher.cpp
index 6fb417cf96..9bb8fd5150 100644
--- a/utils/TableGen/DAGISelMatcher.cpp
+++ b/utils/TableGen/DAGISelMatcher.cpp
@@ -35,6 +35,11 @@ void RecordMatcherNode::print(raw_ostream &OS, unsigned indent) const {
printNext(OS, indent);
}
+void RecordChildMatcherNode::print(raw_ostream &OS, unsigned indent) const {
+ OS.indent(indent) << "RecordChild: " << ChildNo << '\n';
+ printNext(OS, indent);
+}
+
void RecordMemRefMatcherNode::print(raw_ostream &OS, unsigned indent) const {
OS.indent(indent) << "RecordMemRef\n";
printNext(OS, indent);