summaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/LoopCacheAnalysis.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2021-01-22 23:25:01 -0800
committerKazu Hirata <kazu@google.com>2021-01-22 23:25:01 -0800
commita3254904b28cbc392baa8011f1da8172538ff077 (patch)
treec367ddefa5299896fe2d930042f554f735143223 /llvm/lib/Analysis/LoopCacheAnalysis.cpp
parent018984ae6833fae107aa9c502ab5536efceca88e (diff)
[Analysis] Use llvm::append_range (NFC)
Diffstat (limited to 'llvm/lib/Analysis/LoopCacheAnalysis.cpp')
-rw-r--r--llvm/lib/Analysis/LoopCacheAnalysis.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/LoopCacheAnalysis.cpp b/llvm/lib/Analysis/LoopCacheAnalysis.cpp
index 6c490411d106..cf68596bfbc3 100644
--- a/llvm/lib/Analysis/LoopCacheAnalysis.cpp
+++ b/llvm/lib/Analysis/LoopCacheAnalysis.cpp
@@ -505,8 +505,7 @@ CacheCost::getCacheCost(Loop &Root, LoopStandardAnalysisResults &AR,
}
LoopVectorTy Loops;
- for (Loop *L : breadth_first(&Root))
- Loops.push_back(L);
+ append_range(Loops, breadth_first(&Root));
if (!getInnerMostLoop(Loops)) {
LLVM_DEBUG(dbgs() << "Cannot compute cache cost of loop nest with more "