diff options
author | Dan Gohman <gohman@apple.com> | 2008-03-10 23:48:14 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-03-10 23:48:14 +0000 |
commit | 2a3aeb1f7210ba355f594a59373a33a74ce21d40 (patch) | |
tree | 8c49a900057beabee8a898fada25e81dad04aa5e /llvm | |
parent | 2f3648b2618a56af44b514f8433eddd8c5bfeb19 (diff) | |
download | bcm5719-llvm-2a3aeb1f7210ba355f594a59373a33a74ce21d40.tar.gz bcm5719-llvm-2a3aeb1f7210ba355f594a59373a33a74ce21d40.zip |
Correctly clone FlaggedNodes.
llvm-svn: 48196
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp index 31a784eca88..5b3b28162b5 100644 --- a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp @@ -69,8 +69,7 @@ static void CheckForPhysRegDependency(SDNode *Def, SDNode *Use, unsigned Op, SUnit *ScheduleDAG::Clone(SUnit *Old) { SUnit *SU = NewSUnit(Old->Node); - for (unsigned i = 0, e = SU->FlaggedNodes.size(); i != e; ++i) - SU->FlaggedNodes.push_back(SU->FlaggedNodes[i]); + SU->FlaggedNodes = Old->FlaggedNodes; SU->InstanceNo = SUnitMap[Old->Node].size(); SU->Latency = Old->Latency; SU->isTwoAddress = Old->isTwoAddress; |