aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/LoopCacheAnalysis.cpp
diff options
context:
space:
mode:
authorStefanos Baziotis <sdi1600105@di.uoa.gr>2020-09-22 23:28:00 +0300
committerStefanos Baziotis <sdi1600105@di.uoa.gr>2020-09-22 23:28:51 +0300
commit89c1e35f3c5060c23f9eed409f89c2c9908b87ed (patch)
tree7b667eddfb0217898e6a8e232463a808216b6188 /llvm/lib/Analysis/LoopCacheAnalysis.cpp
parent4edb3d3646c46f15ca93bf19ed96a9169143ed6d (diff)
downloadllvm-89c1e35f3c5060c23f9eed409f89c2c9908b87ed.zip
llvm-89c1e35f3c5060c23f9eed409f89c2c9908b87ed.tar.gz
llvm-89c1e35f3c5060c23f9eed409f89c2c9908b87ed.tar.bz2
[LoopInfo] empty() -> isInnermost(), add isOutermost()
Differential Revision: https://reviews.llvm.org/D82895
Diffstat (limited to 'llvm/lib/Analysis/LoopCacheAnalysis.cpp')
-rw-r--r--llvm/lib/Analysis/LoopCacheAnalysis.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/LoopCacheAnalysis.cpp b/llvm/lib/Analysis/LoopCacheAnalysis.cpp
index 47b08a6..6c49041 100644
--- a/llvm/lib/Analysis/LoopCacheAnalysis.cpp
+++ b/llvm/lib/Analysis/LoopCacheAnalysis.cpp
@@ -499,7 +499,7 @@ CacheCost::CacheCost(const LoopVectorTy &Loops, const LoopInfo &LI,
std::unique_ptr<CacheCost>
CacheCost::getCacheCost(Loop &Root, LoopStandardAnalysisResults &AR,
DependenceInfo &DI, Optional<unsigned> TRT) {
- if (Root.getParentLoop()) {
+ if (!Root.isOutermost()) {
LLVM_DEBUG(dbgs() << "Expecting the outermost loop in a loop nest\n");
return nullptr;
}