From: Chris Lattner Date: Sun, 21 Feb 2010 06:44:29 +0000 (+0000) Subject: fix a table size miscomputation, target opcodes are 2 bytes. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=bef2a515f61d2f2cd57fe6a29f8d288631a777bd;p=oota-llvm.git fix a table size miscomputation, target opcodes are 2 bytes. With this, the matcher actually works reasonably well, but crashes on larger examples in the scheduler. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96727 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/TableGen/DAGISelMatcherEmitter.cpp b/utils/TableGen/DAGISelMatcherEmitter.cpp index dc694fa61aa..e1a625be897 100644 --- a/utils/TableGen/DAGISelMatcherEmitter.cpp +++ b/utils/TableGen/DAGISelMatcherEmitter.cpp @@ -303,7 +303,7 @@ EmitMatcher(const MatcherNode *N, unsigned Indent, formatted_raw_ostream &OS) { for (unsigned i = 0, e = EN->getNumOperands(); i != e; ++i) OS << EN->getOperand(i) << ", "; OS << '\n'; - return 5+EN->getNumVTs()+EN->getNumOperands(); + return 6+EN->getNumVTs()+EN->getNumOperands(); } case MatcherNode::CompleteMatch: { const CompleteMatchMatcherNode *CM = cast(N);