mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-17 21:35:07 +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;
|
bool True = true;
|
||||||
if (!MI->isSafeToMove(TII, False)) {
|
if (!MI->isSafeToMove(TII, False)) {
|
||||||
if (Chain)
|
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)
|
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();
|
PendingLoads.clear();
|
||||||
Chain = SU;
|
Chain = SU;
|
||||||
} else if (!MI->isSafeToMove(TII, True)) {
|
} else if (!MI->isSafeToMove(TII, True)) {
|
||||||
if (Chain)
|
if (Chain)
|
||||||
Chain->addPred(SU, /*isCtrl=*/false, /*isArtificial=*/false);
|
Chain->addPred(SU, /*isCtrl=*/true, /*isArtificial=*/false);
|
||||||
PendingLoads.push_back(SU);
|
PendingLoads.push_back(SU);
|
||||||
}
|
}
|
||||||
if (Terminator && SU->Succs.empty())
|
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())
|
if (MI->getDesc().isTerminator() || MI->isLabel())
|
||||||
Terminator = SU;
|
Terminator = SU;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user