[LLE] Fix typo from r263058

This was meant to check unit stride for both the load and the store.

Thanks to Roman Shirokiy for noticing this.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@268251 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Adam Nemet 2016-05-02 16:52:00 +00:00
parent 549d73f230
commit b75d37fd5a

View File

@ -78,7 +78,7 @@ struct StoreToLoadForwardingCandidate {
// able to handle non unit stirde as well as long as the stride is equal to
// the dependence distance.
if (isStridedPtr(PSE, LoadPtr, L) != 1 ||
isStridedPtr(PSE, LoadPtr, L) != 1)
isStridedPtr(PSE, StorePtr, L) != 1)
return false;
auto &DL = Load->getParent()->getModule()->getDataLayout();