summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Nemet <anemet@apple.com>2016-05-02 16:52:00 +0000
committerAdam Nemet <anemet@apple.com>2016-05-02 16:52:00 +0000
commitd02872c7b47e70f571ee395e715e776d0e638423 (patch)
tree48ca146462532f0457ab0ddfae4836b6444b3d8b
parent228b1e9a1f2a52e13156b3f12c73ac004cb7ffc1 (diff)
downloadbcm5719-llvm-d02872c7b47e70f571ee395e715e776d0e638423.tar.gz
bcm5719-llvm-d02872c7b47e70f571ee395e715e776d0e638423.zip
[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. llvm-svn: 268251
-rw-r--r--llvm/lib/Transforms/Scalar/LoopLoadElimination.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopLoadElimination.cpp b/llvm/lib/Transforms/Scalar/LoopLoadElimination.cpp
index 9a7e2c74a8d..1740be70dde 100644
--- a/llvm/lib/Transforms/Scalar/LoopLoadElimination.cpp
+++ b/llvm/lib/Transforms/Scalar/LoopLoadElimination.cpp
@@ -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();
OpenPOWER on IntegriCloud