[llvm-commits] [llvm] r59837 - /llvm/trunk/lib/CodeGen/ScheduleDAGInstrs.cpp
Dan Gohman
gohman at apple.com
Fri Nov 21 11:17:25 PST 2008
Author: djg
Date: Fri Nov 21 13:17:25 2008
New Revision: 59837
URL: http://llvm.org/viewvc/llvm-project?rev=59837&view=rev
Log:
Correctly set the isCtrl flag for chain dependencies.
Modified:
llvm/trunk/lib/CodeGen/ScheduleDAGInstrs.cpp
Modified: llvm/trunk/lib/CodeGen/ScheduleDAGInstrs.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/ScheduleDAGInstrs.cpp?rev=59837&r1=59836&r2=59837&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/ScheduleDAGInstrs.cpp (original)
+++ llvm/trunk/lib/CodeGen/ScheduleDAGInstrs.cpp Fri Nov 21 13:17:25 2008
@@ -85,18 +85,18 @@
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;
More information about the llvm-commits
mailing list