LoopVectorize: Fix comments

No functionality change.

llvm-svn: 181862
This commit is contained in:
Arnold Schwaighofer 2013-05-15 02:02:45 +00:00
parent 4fec903717
commit 09cee97270
1 changed files with 4 additions and 4 deletions

View File

@ -320,11 +320,11 @@ private:
/// \brief Check if conditionally executed loads are hoistable. /// \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 /// isHoistableLoad should be called on all load instructions that are executed
/// conditionally. After all conditional loads are processed, the client should /// conditionally. After all conditional loads are processed, the client should
/// call canHoistAllLoads to determine if all of the conditional execute loads /// call canHoistAllLoads to determine if all of the conditional executed loads
/// have an unconditional memory access in the loop. /// have an unconditional memory access to the same memory address in the loop.
class LoadHoisting { class LoadHoisting {
typedef SmallPtrSet<Value *, 8> MemorySet; typedef SmallPtrSet<Value *, 8> MemorySet;
@ -3354,7 +3354,7 @@ bool LoopVectorizationLegality::blockCanBePredicated(BasicBlock *BB) {
if (it->mayReadFromMemory() && !LoadSpeculation.isHoistableLoad(it)) if (it->mayReadFromMemory() && !LoadSpeculation.isHoistableLoad(it))
return false; return false;
// We predicate stores at the moment. // We don't predicate stores at the moment.
if (it->mayWriteToMemory() || it->mayThrow()) if (it->mayWriteToMemory() || it->mayThrow())
return false; return false;