diff options
author | Dan Gohman <gohman@apple.com> | 2009-09-28 15:07:18 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-09-28 15:07:18 +0000 |
commit | 6d594a9d76ed93cd03723283c1e7ea1b59075a3d (patch) | |
tree | 6d190bfe08aebe476f938d8a11d622e54696df57 /lib | |
parent | 2d5dfd94e5fb1d60fe1f43bea6728c63ed4c160d (diff) | |
download | external_llvm-6d594a9d76ed93cd03723283c1e7ea1b59075a3d.zip external_llvm-6d594a9d76ed93cd03723283c1e7ea1b59075a3d.tar.gz external_llvm-6d594a9d76ed93cd03723283c1e7ea1b59075a3d.tar.bz2 |
Include the name of the loop header in debug messages.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82993 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Analysis/LoopPass.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/lib/Analysis/LoopPass.cpp b/lib/Analysis/LoopPass.cpp index 22466ae..e346cc0 100644 --- a/lib/Analysis/LoopPass.cpp +++ b/lib/Analysis/LoopPass.cpp @@ -224,7 +224,8 @@ bool LPPassManager::runOnFunction(Function &F) { for (unsigned Index = 0; Index < getNumContainedPasses(); ++Index) { Pass *P = getContainedPass(Index); - dumpPassInfo(P, EXECUTION_MSG, ON_LOOP_MSG, ""); + dumpPassInfo(P, EXECUTION_MSG, ON_LOOP_MSG, + CurrentLoop->getHeader()->getNameStr()); dumpRequiredSet(P); initializeAnalysisImpl(P); @@ -239,7 +240,8 @@ bool LPPassManager::runOnFunction(Function &F) { } if (Changed) - dumpPassInfo(P, MODIFICATION_MSG, ON_LOOP_MSG, ""); + dumpPassInfo(P, MODIFICATION_MSG, ON_LOOP_MSG, + CurrentLoop->getHeader()->getNameStr()); dumpPreservedSet(P); if (!skipThisLoop) { @@ -258,7 +260,10 @@ bool LPPassManager::runOnFunction(Function &F) { removeNotPreservedAnalysis(P); recordAvailableAnalysis(P); - removeDeadPasses(P, "", ON_LOOP_MSG); + removeDeadPasses(P, + skipThisLoop ? "<deleted>" : + CurrentLoop->getHeader()->getNameStr(), + ON_LOOP_MSG); if (skipThisLoop) // Do not run other passes on this loop. @@ -271,7 +276,7 @@ bool LPPassManager::runOnFunction(Function &F) { if (skipThisLoop) for (unsigned Index = 0; Index < getNumContainedPasses(); ++Index) { Pass *P = getContainedPass(Index); - freePass(P, "", ON_LOOP_MSG); + freePass(P, "<deleted>", ON_LOOP_MSG); } // Pop the loop from queue after running all passes. |