fix a table size miscomputation, target opcodes are 2 bytes.
authorChris Lattner <sabre@nondot.org>
Sun, 21 Feb 2010 06:44:29 +0000 (06:44 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 21 Feb 2010 06:44:29 +0000 (06:44 +0000)
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

utils/TableGen/DAGISelMatcherEmitter.cpp

index dc694fa61aa8cecf7c460ccb5b1b69ad6615c48b..e1a625be897625e54d33fe9e1ab126ec39feef36 100644 (file)
@@ -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<CompleteMatchMatcherNode>(N);