forked from OSchip/llvm-project
parent
98a71505f5
commit
efc091f457
|
@ -219,9 +219,9 @@ public:
|
||||||
if (OtherCand == nullptr)
|
if (OtherCand == nullptr)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
// Handle the very basic of case when the two stores are in the same
|
// Handle the very basic case when the two stores are in the same block
|
||||||
// block so deciding which one forwards is easy. The later one forwards
|
// so deciding which one forwards is easy. The later one forwards as
|
||||||
// as long as they both have a dependence distance of one to the load.
|
// long as they both have a dependence distance of one to the load.
|
||||||
if (Cand.Store->getParent() == OtherCand->Store->getParent() &&
|
if (Cand.Store->getParent() == OtherCand->Store->getParent() &&
|
||||||
Cand.isDependenceDistanceOfOne(PSE) &&
|
Cand.isDependenceDistanceOfOne(PSE) &&
|
||||||
OtherCand->isDependenceDistanceOfOne(PSE)) {
|
OtherCand->isDependenceDistanceOfOne(PSE)) {
|
||||||
|
|
Loading…
Reference in New Issue