summaryrefslogtreecommitdiffstats
path: root/llvm/lib
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
commit9b9688aeb868a6c93c2b4adcb8dcda4f648f1a4a (patch)
tree91ebaefe5cc237622082d03320013a62b18e2e0f /llvm/lib
parentce23987e6be1e236c41a2801c478d19d11083fce (diff)
downloadbcm5719-llvm-9b9688aeb868a6c93c2b4adcb8dcda4f648f1a4a.tar.gz
bcm5719-llvm-9b9688aeb868a6c93c2b4adcb8dcda4f648f1a4a.zip
Amend comment.
llvm-svn: 24861
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
index efaf73c573f..49977b24f7c 100644
--- a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
+++ b/llvm/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);
}
OpenPOWER on IntegriCloud