diff options
author | Chris Lattner <sabre@nondot.org> | 2010-02-27 21:48:43 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-02-27 21:48:43 +0000 |
commit | a230f9623d864450d432bb76c397b0cb35a3437e (patch) | |
tree | 2be73812f216d3264745af0db51056fe19b32ce6 /utils/TableGen/DAGISelMatcherOpt.cpp | |
parent | 9fa200d2a2360412465bbd6cfb485af2e9d5b1b4 (diff) |
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
Diffstat (limited to 'utils/TableGen/DAGISelMatcherOpt.cpp')
-rw-r--r-- | utils/TableGen/DAGISelMatcherOpt.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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<Matcher> &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"; |