Amend comment.

llvm-svn: 24861
This commit is contained in:
Jim Laskey 2005-12-19 16:32:26 +00:00
parent ce23987e6b
commit 9b9688aeb8
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}