[llvm-commits] CVS: llvm/utils/TableGen/DAGISelEmitter.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Nov 30 15:08:58 PST 2005
Changes in directory llvm/utils/TableGen:
DAGISelEmitter.cpp updated: 1.77 -> 1.78
---
Log message:
Make the code generated by tblgen return the result of SelectNodeTo, to
permit future changes.
---
Diffs of the changes: (+1 -2)
DAGISelEmitter.cpp | 3 +--
1 files changed, 1 insertion(+), 2 deletions(-)
Index: llvm/utils/TableGen/DAGISelEmitter.cpp
diff -u llvm/utils/TableGen/DAGISelEmitter.cpp:1.77 llvm/utils/TableGen/DAGISelEmitter.cpp:1.78
--- llvm/utils/TableGen/DAGISelEmitter.cpp:1.77 Tue Nov 29 12:44:58 2005
+++ llvm/utils/TableGen/DAGISelEmitter.cpp Wed Nov 30 17:08:45 2005
@@ -1733,13 +1733,12 @@
// If this instruction is the root, and if there is only one use of it,
// use SelectNodeTo instead of getTargetNode to avoid an allocation.
OS << " if (N.Val->hasOneUse()) {\n";
- OS << " CurDAG->SelectNodeTo(N.Val, "
+ OS << " return CurDAG->SelectNodeTo(N.Val, "
<< II.Namespace << "::" << II.TheDef->getName() << ", MVT::"
<< getEnumName(N->getType());
for (unsigned i = 0, e = Ops.size(); i != e; ++i)
OS << ", Tmp" << Ops[i];
OS << ");\n";
- OS << " return N;\n";
OS << " } else {\n";
OS << " return CodeGenMap[N] = CurDAG->getTargetNode("
<< II.Namespace << "::" << II.TheDef->getName() << ", MVT::"
More information about the llvm-commits
mailing list