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