mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-14 15:46:32 +00:00
[polly] Use DenseMap::insert_range (NFC) (#133657)
This commit is contained in:
parent
2fc08d4c31
commit
fff8f035ac
@ -79,7 +79,7 @@ public:
|
||||
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
|
||||
|
@ -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();
|
||||
@ -1131,7 +1131,7 @@ void RegionGenerator::copyStmt(ScopStmt &Stmt, LoopToScevMapT <S,
|
||||
|
||||
// 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.
|
||||
@ -1164,7 +1164,7 @@ void RegionGenerator::copyStmt(ScopStmt &Stmt, LoopToScevMapT <S,
|
||||
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);
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user