diff options
author | Evan Cheng <evan.cheng@apple.com> | 2006-11-11 10:20:02 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2006-11-11 10:20:02 +0000 |
commit | 3ba433a7e85c4f5b943ae6585a0327f4ccd461a0 (patch) | |
tree | be9b1c5d506dff046146ac6b665ee026d6aca3a6 /lib/CodeGen/SelectionDAG/ScheduleDAG.cpp | |
parent | 490ce1ea6f85395127f62ba521ce9d20d1f569fe (diff) |
Add methods to add implicit def use operands to a MI.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31675 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/ScheduleDAG.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/ScheduleDAG.cpp | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp b/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp index 307b2b9b70..cafe3b6ffe 100644 --- a/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp +++ b/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp @@ -442,16 +442,7 @@ void ScheduleDAG::EmitNode(SDNode *Node, } // Emit implicit def / use operands. - if (II.ImplicitDefs) { - for (const unsigned *ImplicitDefs = II.ImplicitDefs; - *ImplicitDefs; ++ImplicitDefs) - MI->addRegOperand(*ImplicitDefs, true, true); - } - if (II.ImplicitUses) { - for (const unsigned *ImplicitUses = II.ImplicitUses; - *ImplicitUses; ++ImplicitUses) - MI->addRegOperand(*ImplicitUses, false, true); - } + MI->addImplicitDefUseOperands(); // Now that we have emitted all operands, emit this instruction itself. if ((II.Flags & M_USES_CUSTOM_DAG_SCHED_INSERTION) == 0) { |