aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Scalar/LoopLoadElimination.cpp
diff options
context:
space:
mode:
authorAdam Nemet <anemet@apple.com>2016-02-29 23:21:12 +0000
committerAdam Nemet <anemet@apple.com>2016-02-29 23:21:12 +0000
commitefc091f457c98ecf86498fe0fd45c81a58d4a2ab (patch)
treefffe35607a76b69a964751a5ccdb3a7e28ae51a6 /llvm/lib/Transforms/Scalar/LoopLoadElimination.cpp
parent98a71505f5c2ea56c6cc4c9ccc67f25355cf1d93 (diff)
downloadllvm-efc091f457c98ecf86498fe0fd45c81a58d4a2ab.zip
llvm-efc091f457c98ecf86498fe0fd45c81a58d4a2ab.tar.gz
llvm-efc091f457c98ecf86498fe0fd45c81a58d4a2ab.tar.bz2
[LLE] Fix a comment
llvm-svn: 262270
Diffstat (limited to 'llvm/lib/Transforms/Scalar/LoopLoadElimination.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/LoopLoadElimination.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopLoadElimination.cpp b/llvm/lib/Transforms/Scalar/LoopLoadElimination.cpp
index a363d24..c6cec12 100644
--- a/llvm/lib/Transforms/Scalar/LoopLoadElimination.cpp
+++ b/llvm/lib/Transforms/Scalar/LoopLoadElimination.cpp
@@ -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)) {