diff options
| author | Kazu Hirata <kazu@google.com> | 2021-01-22 23:25:01 -0800 |
|---|---|---|
| committer | Kazu Hirata <kazu@google.com> | 2021-01-22 23:25:01 -0800 |
| commit | a3254904b28cbc392baa8011f1da8172538ff077 (patch) | |
| tree | c367ddefa5299896fe2d930042f554f735143223 /llvm/lib/Analysis/MemoryDependenceAnalysis.cpp | |
| parent | 018984ae6833fae107aa9c502ab5536efceca88e (diff) | |
| download | llvm-a3254904b28cbc392baa8011f1da8172538ff077.tar.gz llvm-a3254904b28cbc392baa8011f1da8172538ff077.tar.bz2 llvm-a3254904b28cbc392baa8011f1da8172538ff077.zip | |
[Analysis] Use llvm::append_range (NFC)
Diffstat (limited to 'llvm/lib/Analysis/MemoryDependenceAnalysis.cpp')
| -rw-r--r-- | llvm/lib/Analysis/MemoryDependenceAnalysis.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/Analysis/MemoryDependenceAnalysis.cpp b/llvm/lib/Analysis/MemoryDependenceAnalysis.cpp index 57fefc17a97b..4e7a16efea4c 100644 --- a/llvm/lib/Analysis/MemoryDependenceAnalysis.cpp +++ b/llvm/lib/Analysis/MemoryDependenceAnalysis.cpp @@ -752,8 +752,7 @@ MemoryDependenceResults::getNonLocalCallDependency(CallBase *QueryCall) { } else { // Seed DirtyBlocks with each of the preds of QueryInst's block. BasicBlock *QueryBB = QueryCall->getParent(); - for (BasicBlock *Pred : PredCache.get(QueryBB)) - DirtyBlocks.push_back(Pred); + append_range(DirtyBlocks, PredCache.get(QueryBB)); ++NumUncacheNonLocal; } @@ -838,8 +837,7 @@ MemoryDependenceResults::getNonLocalCallDependency(CallBase *QueryCall) { // If the block *is* completely transparent to the load, we need to check // the predecessors of this block. Add them to our worklist. - for (BasicBlock *Pred : PredCache.get(DirtyBB)) - DirtyBlocks.push_back(Pred); + append_range(DirtyBlocks, PredCache.get(DirtyBB)); } } |
