mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-01 00:33:09 +00:00
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") git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23269 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bfde080ce0
commit
fbf8e57639
@ -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());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user