Correctly clone FlaggedNodes.

llvm-svn: 48196
This commit is contained in:
Dan Gohman 2008-03-10 23:48:14 +00:00
parent 2f3648b261
commit 2a3aeb1f72

View File

@ -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;