[ScopBuilder] Fix typo. NFC.

Contributed-by: Nandini Singhal <cs15mtech01004@iith.ac.in>

Differential Revision: https://reviews.llvm.org/D38322

llvm-svn: 314519
This commit is contained in:
Michael Kruse 2017-09-29 15:13:05 +00:00
parent 5207630d7e
commit 2dd5fa4dc7
2 changed files with 5 additions and 5 deletions

View File

@ -356,7 +356,7 @@ class ScopBuilder {
/// base address and there are no other accesses which overlap with them. The
/// base address check rules out impossible reductions candidates early. The
/// overlap check, together with the "only one user" check in
/// collectCandiateReductionLoads, guarantees that none of the intermediate
/// collectCandidateReductionLoads, guarantees that none of the intermediate
/// results will escape during execution of the loop nest. We basically check
/// here that no other memory access can access the same memory as the
/// potential reduction.
@ -372,7 +372,7 @@ class ScopBuilder {
///
/// Note: We allow only one use to ensure the load and binary operator cannot
/// escape this block or into any other store except @p StoreMA.
void collectCandiateReductionLoads(MemoryAccess *StoreMA,
void collectCandidateReductionLoads(MemoryAccess *StoreMA,
SmallVectorImpl<MemoryAccess *> &Loads);
/// Build the access relation of all memory accesses of @p Stmt.

View File

@ -984,7 +984,7 @@ void ScopBuilder::checkForReductions(ScopStmt &Stmt) {
continue;
Loads.clear();
collectCandiateReductionLoads(StoreMA, Loads);
collectCandidateReductionLoads(StoreMA, Loads);
for (MemoryAccess *LoadMA : Loads)
Candidates.push_back(std::make_pair(LoadMA, StoreMA));
}
@ -1034,7 +1034,7 @@ void ScopBuilder::checkForReductions(ScopStmt &Stmt) {
}
}
void ScopBuilder::collectCandiateReductionLoads(
void ScopBuilder::collectCandidateReductionLoads(
MemoryAccess *StoreMA, SmallVectorImpl<MemoryAccess *> &Loads) {
ScopStmt *Stmt = StoreMA->getStatement();