]> granicus.if.org Git - llvm/commitdiff
[TimeProfiler] Fix "OptModule" section and add new "Backend" sections
authorAnton Afanasyev <anton.a.afanasyev@gmail.com>
Sat, 28 Sep 2019 07:14:12 +0000 (07:14 +0000)
committerAnton Afanasyev <anton.a.afanasyev@gmail.com>
Sat, 28 Sep 2019 07:14:12 +0000 (07:14 +0000)
Remove unnecessary "OptModule" section. Add "PerFunctionPasses",
"PerModulePasses" and "CodeGenPasses" sections under "Backend" section.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@373142 91177308-0d34-0410-b5e6-96231b3b80d8

lib/IR/LegacyPassManager.cpp

index c575d6e782b93c87cbeeed22fe02f6e877f64d93..f03df2dec7c46213b26d6a8d73c4a97068764577 100644 (file)
@@ -1680,7 +1680,6 @@ bool FPPassManager::runOnFunction(Function &F) {
 bool FPPassManager::runOnModule(Module &M) {
   bool Changed = false;
 
-  llvm::TimeTraceScope TimeScope("OptModule", M.getName());
   for (Function &F : M)
     Changed |= runOnFunction(F);