Changes in directory llvm/utils/TableGen:
DAGISelEmitter.cpp updated: 1.124 -> 1.125 --- Log message: Bug fix wrt chain operand. --- Diffs of the changes: (+4 -7) DAGISelEmitter.cpp | 11 ++++------- 1 files changed, 4 insertions(+), 7 deletions(-) Index: llvm/utils/TableGen/DAGISelEmitter.cpp diff -u llvm/utils/TableGen/DAGISelEmitter.cpp:1.124 llvm/utils/TableGen/DAGISelEmitter.cpp:1.125 --- llvm/utils/TableGen/DAGISelEmitter.cpp:1.124 Tue Jan 3 21:23:30 2006 +++ llvm/utils/TableGen/DAGISelEmitter.cpp Thu Jan 5 18:41:12 2006 @@ -1902,6 +1902,10 @@ << ".getValue(" << CInfo.getNumResults() << "))) goto P" << PatternNo << "Fail; // Already selected for a chain use?\n"; } + if (!FoundChain) { + OS << " SDOperand Chain = " << RootName << ".getOperand(0);\n"; + FoundChain = true; + } } for (unsigned i = 0, e = N->getNumChildren(); i != e; ++i, ++OpNo) { @@ -1975,13 +1979,6 @@ } } - if (HasChain) { - if (!FoundChain) { - OS << " SDOperand Chain = " << RootName << ".getOperand(0);\n"; - FoundChain = true; - } - } - // If there is a node predicate for this, emit the call. if (!N->getPredicateFn().empty()) OS << " if (!" << N->getPredicateFn() << "(" << RootName _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits