diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-07-10 07:08:32 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-07-10 07:08:32 +0000 |
commit | af825c840ebc4ca5248c62325b2371091c9fb4b4 (patch) | |
tree | 362a60e1e01a25f96605b76f2e803fa4180fb686 /lib/CodeGen/SelectionDAG/ScheduleDAGSimple.cpp | |
parent | c63d391c9a886d58c6a53a7f565fbd544b076d9f (diff) |
When a node value is only used by a CopyToReg, use the user's dest. This should not be restricted to nodes that produce only a single value.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@38485 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/ScheduleDAGSimple.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/ScheduleDAGSimple.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/ScheduleDAGSimple.cpp b/lib/CodeGen/SelectionDAG/ScheduleDAGSimple.cpp index c6187f1109..9e44fcee25 100644 --- a/lib/CodeGen/SelectionDAG/ScheduleDAGSimple.cpp +++ b/lib/CodeGen/SelectionDAG/ScheduleDAGSimple.cpp @@ -682,7 +682,7 @@ void ScheduleDAGSimple::EmitAll() { LI->first, RegMap->getRegClass(LI->second)); } - DenseMap<SDNode*, unsigned> VRBaseMap; + DenseMap<SDOperand, unsigned> VRBaseMap; // For each node in the ordering for (unsigned i = 0, N = Ordering.size(); i < N; i++) { |