[llvm-commits] CVS: llvm/utils/TableGen/DAGISelEmitter.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu Sep 8 10:45:23 PDT 2005
Changes in directory llvm/utils/TableGen:
DAGISelEmitter.cpp updated: 1.1 -> 1.2
---
Log message:
Keep names even when inlining. This allows us to realize that ADDI is:
(set GPRC:i32:$rD, (add GPRC:i32:$rA, (imm)<<Predicate_immSExt16>>:$imm))
not:
(set GPRC:i32:$rD, (add GPRC:i32:$rA, (imm)<<Predicate_immSExt16>>))
(we keep the ":$imm")
---
Diffs of the changes: (+2 -1)
DAGISelEmitter.cpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
Index: llvm/utils/TableGen/DAGISelEmitter.cpp
diff -u llvm/utils/TableGen/DAGISelEmitter.cpp:1.1 llvm/utils/TableGen/DAGISelEmitter.cpp:1.2
--- llvm/utils/TableGen/DAGISelEmitter.cpp:1.1 Wed Sep 7 18:44:43 2005
+++ llvm/utils/TableGen/DAGISelEmitter.cpp Thu Sep 8 12:45:12 2005
@@ -142,6 +142,8 @@
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 @@
// Inline pattern fragments into it.
Instructions.back()->InlinePatternFragments();
- DEBUG(std::cerr << Instrs[i]->getName() << ": ");
DEBUG(Instructions.back()->dump());
}
}
More information about the llvm-commits
mailing list