From fbf8e57639cacba2a4be13400f5768cd3a10fd17 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 8 Sep 2005 17:45:12 +0000 Subject: [PATCH] Keep names even when inlining. This allows us to realize that ADDI is: (set GPRC:i32:$rD, (add GPRC:i32:$rA, (imm)<>:$imm)) not: (set GPRC:i32:$rD, (add GPRC:i32:$rA, (imm)<>)) (we keep the ":$imm") git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23269 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/TableGen/DAGISelEmitter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/TableGen/DAGISelEmitter.cpp b/utils/TableGen/DAGISelEmitter.cpp index b5b356d68bd..37000b2b8ee 100644 --- a/utils/TableGen/DAGISelEmitter.cpp +++ b/utils/TableGen/DAGISelEmitter.cpp @@ -142,6 +142,8 @@ TreePatternNode *TreePatternNode::InlinePatternFragments(TreePattern &TP) { FragTree->SubstituteFormalArguments(ArgMap); } + FragTree->setName(getName()); + // Get a new copy of this fragment to stitch into here. //delete this; // FIXME: implement refcounting! return FragTree; @@ -420,7 +422,6 @@ void DAGISelEmitter::ParseAndResolveInstructions() { // Inline pattern fragments into it. Instructions.back()->InlinePatternFragments(); - DEBUG(std::cerr << Instrs[i]->getName() << ": "); DEBUG(Instructions.back()->dump()); } }