From a230f9623d864450d432bb76c397b0cb35a3437e Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 27 Feb 2010 21:48:43 +0000 Subject: change CheckOpcodeMatcher to hold the SDNodeInfo instead of the opcode name. This gives the optimizer more semantic info. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97346 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/TableGen/DAGISelMatcherOpt.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'utils/TableGen/DAGISelMatcherOpt.cpp') diff --git a/utils/TableGen/DAGISelMatcherOpt.cpp b/utils/TableGen/DAGISelMatcherOpt.cpp index 7e517ea9ff..1ce573353f 100644 --- a/utils/TableGen/DAGISelMatcherOpt.cpp +++ b/utils/TableGen/DAGISelMatcherOpt.cpp @@ -201,7 +201,9 @@ static void FactorNodes(OwningPtr &MatcherPtr) { --e; } - if (Scan != e) { + if (Scan != e && + // Don't print it's obvious nothing extra could be merged anyway. + Scan+1 != e) { DEBUG(errs() << "Couldn't merge this:\n"; Optn->print(errs(), 4); errs() << "into this:\n"; -- cgit v1.2.3