mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-21 18:29:46 +00:00
Correctly set the isCtrl flag for chain dependencies.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59837 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fc626b62b8
commit
37d8b3193d
@ -85,18 +85,18 @@ void ScheduleDAGInstrs::BuildSchedUnits() {
|
||||
bool True = true;
|
||||
if (!MI->isSafeToMove(TII, False)) {
|
||||
if (Chain)
|
||||
Chain->addPred(SU, /*isCtrl=*/false, /*isArtificial=*/false);
|
||||
Chain->addPred(SU, /*isCtrl=*/true, /*isArtificial=*/false);
|
||||
for (unsigned k = 0, m = PendingLoads.size(); k != m; ++k)
|
||||
PendingLoads[k]->addPred(SU, /*isCtrl=*/false, /*isArtificial=*/false);
|
||||
PendingLoads[k]->addPred(SU, /*isCtrl=*/true, /*isArtificial=*/false);
|
||||
PendingLoads.clear();
|
||||
Chain = SU;
|
||||
} else if (!MI->isSafeToMove(TII, True)) {
|
||||
if (Chain)
|
||||
Chain->addPred(SU, /*isCtrl=*/false, /*isArtificial=*/false);
|
||||
Chain->addPred(SU, /*isCtrl=*/true, /*isArtificial=*/false);
|
||||
PendingLoads.push_back(SU);
|
||||
}
|
||||
if (Terminator && SU->Succs.empty())
|
||||
Terminator->addPred(SU, /*isCtrl=*/false, /*isArtificial=*/false);
|
||||
Terminator->addPred(SU, /*isCtrl=*/true, /*isArtificial=*/false);
|
||||
if (MI->getDesc().isTerminator() || MI->isLabel())
|
||||
Terminator = SU;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user