diff options
-rw-r--r-- | llvm/lib/Analysis/FunctionPropertiesAnalysis.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/Analysis/FunctionPropertiesAnalysis.cpp b/llvm/lib/Analysis/FunctionPropertiesAnalysis.cpp index 3db108c..b6ff27d 100644 --- a/llvm/lib/Analysis/FunctionPropertiesAnalysis.cpp +++ b/llvm/lib/Analysis/FunctionPropertiesAnalysis.cpp @@ -53,9 +53,7 @@ FunctionPropertiesInfo::getFunctionPropertiesInfo(const Function &F, if (FPI.MaxLoopDepth < LoopDepth) FPI.MaxLoopDepth = LoopDepth; } - for (Loop *L : LI) { - ++FPI.TopLevelLoopCount; - } + FPI.TopLevelLoopCount += llvm::size(LI); return FPI; } |