diff options
| author | Chris Lattner <sabre@nondot.org> | 2005-11-30 23:08:45 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2005-11-30 23:08:45 +0000 |
| commit | 5d28ffdfec99c7f69e62893eb4156ead03cefa54 (patch) | |
| tree | 393692a367f36f6c052d66d7f31b122ea7bd2f1f /utils/TableGen/DAGISelEmitter.cpp | |
| parent | d5acfb415379faf52e815411083a459321ff4498 (diff) | |
| download | external_llvm-5d28ffdfec99c7f69e62893eb4156ead03cefa54.zip external_llvm-5d28ffdfec99c7f69e62893eb4156ead03cefa54.tar.gz external_llvm-5d28ffdfec99c7f69e62893eb4156ead03cefa54.tar.bz2 | |
Make the code generated by tblgen return the result of SelectNodeTo, to
permit future changes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24553 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/DAGISelEmitter.cpp')
| -rw-r--r-- | utils/TableGen/DAGISelEmitter.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/utils/TableGen/DAGISelEmitter.cpp b/utils/TableGen/DAGISelEmitter.cpp index a560bf0..6a14685 100644 --- a/utils/TableGen/DAGISelEmitter.cpp +++ b/utils/TableGen/DAGISelEmitter.cpp @@ -1733,13 +1733,12 @@ CodeGenPatternResult(TreePatternNode *N, unsigned &Ctr, // 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::" |
