summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArnold Schwaighofer <aschwaighofer@apple.com>2013-05-15 02:02:45 +0000
committerArnold Schwaighofer <aschwaighofer@apple.com>2013-05-15 02:02:45 +0000
commite3ab7cca3abbc2dc5056695582b7a46abcc245ef (patch)
treec3e29dc65ffe6c9ed0ad103667171fc1d06bb8b0
parent1386692ef64d3151da8986589eadf0c58aba5c50 (diff)
downloadllvm-e3ab7cca3abbc2dc5056695582b7a46abcc245ef.tar.gz
llvm-e3ab7cca3abbc2dc5056695582b7a46abcc245ef.tar.bz2
llvm-e3ab7cca3abbc2dc5056695582b7a46abcc245ef.tar.xz
LoopVectorize: Fix comments
No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181862 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Transforms/Vectorize/LoopVectorize.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Transforms/Vectorize/LoopVectorize.cpp b/lib/Transforms/Vectorize/LoopVectorize.cpp
index a8e1f4579c..58a1a74655 100644
--- a/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -320,11 +320,11 @@ private:
/// \brief Check if conditionally executed loads are hoistable.
///
-/// This class has two functions. isHoistableLoad and canHoistAllLoads.
+/// This class has two functions: isHoistableLoad and canHoistAllLoads.
/// isHoistableLoad should be called on all load instructions that are executed
/// conditionally. After all conditional loads are processed, the client should
-/// call canHoistAllLoads to determine if all of the conditional execute loads
-/// have an unconditional memory access in the loop.
+/// call canHoistAllLoads to determine if all of the conditional executed loads
+/// have an unconditional memory access to the same memory address in the loop.
class LoadHoisting {
typedef SmallPtrSet<Value *, 8> MemorySet;
@@ -3354,7 +3354,7 @@ bool LoopVectorizationLegality::blockCanBePredicated(BasicBlock *BB) {
if (it->mayReadFromMemory() && !LoadSpeculation.isHoistableLoad(it))
return false;
- // We predicate stores at the moment.
+ // We don't predicate stores at the moment.
if (it->mayWriteToMemory() || it->mayThrow())
return false;