mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-17 08:06:40 +00:00
[mlir] Use SetVector::insert_range (NFC) (#133595)
This commit is contained in:
parent
3d43739753
commit
d66af9c69b
@ -1542,8 +1542,7 @@ mlir::scf::tileConsumerAndFuseProducersUsingSCF(
|
||||
|
||||
if (failed(tilingResult))
|
||||
return rewriter.notifyMatchFailure(consumer, "failed to tile consumer");
|
||||
for (auto *tiledOp : tilingResult->tiledOps)
|
||||
tiledAndFusedOps.insert(tiledOp);
|
||||
tiledAndFusedOps.insert_range(tilingResult->tiledOps);
|
||||
|
||||
DenseMap<Value, Value> replacements;
|
||||
for (auto [origVal, replacement] : llvm::zip_equal(
|
||||
|
@ -104,8 +104,7 @@ void CompilationDatabase::loadDatabase(StringRef filename) {
|
||||
}
|
||||
|
||||
// Track the includes for the file.
|
||||
for (StringRef include : it.first->second.includeDirs)
|
||||
knownIncludes.insert(include);
|
||||
knownIncludes.insert_range(it.first->second.includeDirs);
|
||||
}
|
||||
|
||||
// Add all of the known includes to the default file info. We don't know any
|
||||
|
Loading…
x
Reference in New Issue
Block a user