mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-10 02:25:47 +00:00
Amend comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24861 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -860,7 +860,8 @@ void SimpleSched::PrepareNodeInfo() {
|
|||||||
/// isStrongDependency - Return true if node A has results used by node B.
|
/// isStrongDependency - Return true if node A has results used by node B.
|
||||||
/// I.E., B must wait for latency of A.
|
/// I.E., B must wait for latency of A.
|
||||||
bool SimpleSched::isStrongDependency(NodeInfo *A, NodeInfo *B) {
|
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);
|
return isDefiner(A, B) || (A->IsStore && B->IsLoad);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user