diff options
author | Chris Lattner <sabre@nondot.org> | 2010-02-24 07:31:45 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-02-24 07:31:45 +0000 |
commit | 19b5a7590b784f19875b9880ea8838c393431656 (patch) | |
tree | a72bfb5c816b6e8751d7e9b76b904b1ff53f4871 /utils/TableGen/DAGISelMatcherEmitter.cpp | |
parent | 91c6a822baaba3cb2def94224115e57b84805347 (diff) | |
download | external_llvm-19b5a7590b784f19875b9880ea8838c393431656.zip external_llvm-19b5a7590b784f19875b9880ea8838c393431656.tar.gz external_llvm-19b5a7590b784f19875b9880ea8838c393431656.tar.bz2 |
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/DAGISelMatcherEmitter.cpp')
-rw-r--r-- | utils/TableGen/DAGISelMatcherEmitter.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/utils/TableGen/DAGISelMatcherEmitter.cpp b/utils/TableGen/DAGISelMatcherEmitter.cpp index ecc75c8..e78be79 100644 --- a/utils/TableGen/DAGISelMatcherEmitter.cpp +++ b/utils/TableGen/DAGISelMatcherEmitter.cpp @@ -159,6 +159,13 @@ EmitMatcher(const MatcherNode *N, unsigned Indent, formatted_raw_ostream &OS) { OS.PadToColumn(CommentIndent) << "// " << cast<RecordMatcherNode>(N)->getWhatFor() << '\n'; return 1; + + case MatcherNode::RecordChild: + OS << "OPC_RecordChild" << cast<RecordChildMatcherNode>(N)->getChildNo() + << ','; + OS.PadToColumn(CommentIndent) << "// " + << cast<RecordChildMatcherNode>(N)->getWhatFor() << '\n'; + return 1; case MatcherNode::RecordMemRef: OS << "OPC_RecordMemRef,\n"; |