From a2efe9ebc68457bbff97c9e38665f2ac4813d87c Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Fri, 4 Oct 2013 05:22:20 +0000 Subject: Add OPC_CheckChildSame0-3 to the DAG isel matcher. This replaces sequences of MoveChild, CheckSame, MoveParent. Saves 846 bytes from the X86 DAG isel matcher, ~300 from ARM, ~840 from Hexagon. llvm-svn: 191940 --- llvm/utils/TableGen/DAGISelMatcher.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'llvm/utils/TableGen/DAGISelMatcher.cpp') diff --git a/llvm/utils/TableGen/DAGISelMatcher.cpp b/llvm/utils/TableGen/DAGISelMatcher.cpp index af0eb977250..5d6a11ae0dc 100644 --- a/llvm/utils/TableGen/DAGISelMatcher.cpp +++ b/llvm/utils/TableGen/DAGISelMatcher.cpp @@ -134,6 +134,10 @@ void CheckSameMatcher::printImpl(raw_ostream &OS, unsigned indent) const { OS.indent(indent) << "CheckSame " << MatchNumber << '\n'; } +void CheckChildSameMatcher::printImpl(raw_ostream &OS, unsigned indent) const { + OS.indent(indent) << "CheckChild" << ChildNo << "Same\n"; +} + void CheckPatternPredicateMatcher:: printImpl(raw_ostream &OS, unsigned indent) const { OS.indent(indent) << "CheckPatternPredicate " << Predicate << '\n'; -- cgit v1.2.3