summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/PostRASchedulerList.cpp
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2012-11-13 02:35:06 +0000
committerAndrew Trick <atrick@apple.com>2012-11-13 02:35:06 +0000
commit4b1f9e3bac97f66a2eacba28b9cc859555b4862a (patch)
tree924bfc8b695cbc40199d2e026e77e4cb2e7b1353 /llvm/lib/CodeGen/PostRASchedulerList.cpp
parent2415b3b6b0c4eeb47c53cc0f908040d106b4d024 (diff)
downloadbcm5719-llvm-4b1f9e3bac97f66a2eacba28b9cc859555b4862a.tar.gz
bcm5719-llvm-4b1f9e3bac97f66a2eacba28b9cc859555b4862a.zip
misched: Don't consider artificial edges weak edges.
For now be more conservative in case other out-of-tree schedulers rely on the old behavior of artificial edges. llvm-svn: 167808
Diffstat (limited to 'llvm/lib/CodeGen/PostRASchedulerList.cpp')
-rw-r--r--llvm/lib/CodeGen/PostRASchedulerList.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/PostRASchedulerList.cpp b/llvm/lib/CodeGen/PostRASchedulerList.cpp
index 4284c42eb26..f37fc82b2a9 100644
--- a/llvm/lib/CodeGen/PostRASchedulerList.cpp
+++ b/llvm/lib/CodeGen/PostRASchedulerList.cpp
@@ -581,7 +581,7 @@ void SchedulePostRATDList::FixupKills(MachineBasicBlock *MBB) {
void SchedulePostRATDList::ReleaseSucc(SUnit *SU, SDep *SuccEdge) {
SUnit *SuccSU = SuccEdge->getSUnit();
- if (SuccEdge->isArtificial()) {
+ if (SuccEdge->isWeak()) {
--SuccSU->WeakPredsLeft;
return;
}
OpenPOWER on IntegriCloud