Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion polly/include/polly/CodeGen/IRBuilder.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class ScopAnnotator {
void addAlternativeAliasBases(
llvm::DenseMap<llvm::AssertingVH<llvm::Value>,
llvm::AssertingVH<llvm::Value>> &NewMap) {
AlternativeAliasBases.insert(NewMap.begin(), NewMap.end());
AlternativeAliasBases.insert_range(NewMap);
}

/// Delete the set of alternative alias bases
Expand Down
8 changes: 4 additions & 4 deletions polly/lib/CodeGen/BlockGenerators.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ Value *BlockGenerator::trySynthesizeNewValue(ScopStmt &Stmt, Value *Old,
return nullptr;

ValueMapT VTV;
VTV.insert(BBMap.begin(), BBMap.end());
VTV.insert(GlobalMap.begin(), GlobalMap.end());
VTV.insert_range(BBMap);
VTV.insert_range(GlobalMap);

Scop &S = *Stmt.getParent();
const DataLayout &DL = S.getFunction().getDataLayout();
Expand Down Expand Up @@ -1131,7 +1131,7 @@ void RegionGenerator::copyStmt(ScopStmt &Stmt, LoopToScevMapT &LTS,

// Remember value in case it is visible after this subregion.
if (isDominatingSubregionExit(DT, R, BB))
ValueMap.insert(RegionMap.begin(), RegionMap.end());
ValueMap.insert_range(RegionMap);
}

// Now create a new dedicated region exit block and add it to the region map.
Expand Down Expand Up @@ -1164,7 +1164,7 @@ void RegionGenerator::copyStmt(ScopStmt &Stmt, LoopToScevMapT &LTS,
Instruction *BICopy = BBCopyEnd->getTerminator();

ValueMapT &RegionMap = RegionMaps[BBCopyStart];
RegionMap.insert(StartBlockMap.begin(), StartBlockMap.end());
RegionMap.insert_range(StartBlockMap);

Builder.SetInsertPoint(BICopy);
copyInstScalar(Stmt, TI, RegionMap, LTS);
Expand Down
2 changes: 1 addition & 1 deletion polly/lib/CodeGen/IslNodeBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -895,7 +895,7 @@ void IslNodeBuilder::createUser(__isl_take isl_ast_node *User) {
Id = isl_ast_expr_get_id(StmtExpr);
isl_ast_expr_free(StmtExpr);

LTS.insert(OutsideLoopIterations.begin(), OutsideLoopIterations.end());
LTS.insert_range(OutsideLoopIterations);

Stmt = (ScopStmt *)isl_id_get_user(Id);
auto *NewAccesses = createNewAccesses(Stmt, User);
Expand Down