commit | af825c840ebc4ca5248c62325b2371091c9fb4b4 | [log] [tgz] |
---|---|---|
author | Evan Cheng <evan.cheng@apple.com> | Tue Jul 10 07:08:32 2007 +0000 |
committer | Evan Cheng <evan.cheng@apple.com> | Tue Jul 10 07:08:32 2007 +0000 |
tree | 362a60e1e01a25f96605b76f2e803fa4180fb686 | |
parent | c63d391c9a886d58c6a53a7f565fbd544b076d9f [diff] [blame] |
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
diff --git a/lib/CodeGen/SelectionDAG/ScheduleDAGSimple.cpp b/lib/CodeGen/SelectionDAG/ScheduleDAGSimple.cpp index c6187f1..9e44fce 100644 --- a/lib/CodeGen/SelectionDAG/ScheduleDAGSimple.cpp +++ b/lib/CodeGen/SelectionDAG/ScheduleDAGSimple.cpp
@@ -682,7 +682,7 @@ 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++) {