[llvm-commits] [llvm] r96727 - /llvm/trunk/utils/TableGen/DAGISelMatcherEmitter.cpp
Chris Lattner
sabre at nondot.org
Sat Feb 20 22:44:29 PST 2010
Author: lattner
Date: Sun Feb 21 00:44:29 2010
New Revision: 96727
URL: http://llvm.org/viewvc/llvm-project?rev=96727&view=rev
Log:
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.
Modified:
llvm/trunk/utils/TableGen/DAGISelMatcherEmitter.cpp
Modified: llvm/trunk/utils/TableGen/DAGISelMatcherEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/DAGISelMatcherEmitter.cpp?rev=96727&r1=96726&r2=96727&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/DAGISelMatcherEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/DAGISelMatcherEmitter.cpp Sun Feb 21 00:44:29 2010
@@ -303,7 +303,7 @@
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);
More information about the llvm-commits
mailing list