diff options
author | Evan Cheng <evan.cheng@apple.com> | 2006-11-10 08:43:01 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2006-11-10 08:43:01 +0000 |
commit | 438f7bc67cf235ccee7e6f7ac7f4ae2186eb8020 (patch) | |
tree | 9403ab5aed57a845466b76158b3286967ef517fe /lib/CodeGen/SelectionDAG/ScheduleDAG.cpp | |
parent | e7680cef84c42bc2ee68904bc2bd0b30a312da08 (diff) | |
download | external_llvm-438f7bc67cf235ccee7e6f7ac7f4ae2186eb8020.tar.gz external_llvm-438f7bc67cf235ccee7e6f7ac7f4ae2186eb8020.tar.bz2 external_llvm-438f7bc67cf235ccee7e6f7ac7f4ae2186eb8020.zip |
Add implicit def / use operands to MachineInstr.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31633 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/ScheduleDAG.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/ScheduleDAG.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp b/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp index dd968ed454..307b2b9b70 100644 --- a/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp +++ b/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp @@ -441,6 +441,18 @@ 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); + } + // Now that we have emitted all operands, emit this instruction itself. if ((II.Flags & M_USES_CUSTOM_DAG_SCHED_INSERTION) == 0) { BB->insert(BB->end(), MI); |