aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Laskey <jlaskey@mac.com>2005-12-19 16:32:26 +0000
committerJim Laskey <jlaskey@mac.com>2005-12-19 16:32:26 +0000
commitd845582d4a4b866513f6e3b656dc80d59dc9c05b (patch)
tree76e09615e97703ac10c5022b8466c865f536880b
parentde48ee28a319f3990dcaac637b6dad78d48ab61f (diff)
downloadexternal_llvm-d845582d4a4b866513f6e3b656dc80d59dc9c05b.zip
external_llvm-d845582d4a4b866513f6e3b656dc80d59dc9c05b.tar.gz
external_llvm-d845582d4a4b866513f6e3b656dc80d59dc9c05b.tar.bz2
Amend comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24861 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/SelectionDAG/ScheduleDAG.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp b/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
index efaf73c..49977b2 100644
--- a/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
+++ b/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
@@ -860,7 +860,8 @@ void SimpleSched::PrepareNodeInfo() {
/// isStrongDependency - Return true if node A has results used by node B.
/// I.E., B must wait for latency of A.
bool SimpleSched::isStrongDependency(NodeInfo *A, NodeInfo *B) {
- // If A defines for B then it's a strong dependency
+ // If A defines for B then it's a strong dependency or
+ // if a load follows a store (may be dependent but why take a chance.)
return isDefiner(A, B) || (A->IsStore && B->IsLoad);
}