summaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/ScheduleDAG.h
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
commitcf6b6131dd0da37903a6e3a5173ea12aa8263713 (patch)
treebd340b29599c75a0b067d01c723cb7b7d27addb8 /include/llvm/CodeGen/ScheduleDAG.h
parente7ff4c14b157746b3e0228d2dce9f70712d1c126 (diff)
downloadllvm-cf6b6131dd0da37903a6e3a5173ea12aa8263713.tar.gz
llvm-cf6b6131dd0da37903a6e3a5173ea12aa8263713.tar.bz2
llvm-cf6b6131dd0da37903a6e3a5173ea12aa8263713.tar.xz
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167808 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/ScheduleDAG.h')
-rw-r--r--include/llvm/CodeGen/ScheduleDAG.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/llvm/CodeGen/ScheduleDAG.h b/include/llvm/CodeGen/ScheduleDAG.h
index 2b6429fbeb..016722e7f4 100644
--- a/include/llvm/CodeGen/ScheduleDAG.h
+++ b/include/llvm/CodeGen/ScheduleDAG.h
@@ -206,8 +206,7 @@ namespace llvm {
/// not force ordering. Breaking a weak edge may require the scheduler to
/// compensate, for example by inserting a copy.
bool isWeak() const {
- return getKind() == Order
- && (Contents.OrdKind == Artificial || Contents.OrdKind == Cluster);
+ return getKind() == Order && Contents.OrdKind == Cluster;
}
/// isArtificial - Test if this is an Order dependence that is marked