diff options
author | Devang Patel <dpatel@apple.com> | 2007-03-05 20:01:30 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2007-03-05 20:01:30 +0000 |
commit | 7f99761143cdf1ad23729708e3dcaa055b189406 (patch) | |
tree | 1455bd84e2e315441b320f3c2a4e23e1872794fc /lib/Analysis/LoopPass.cpp | |
parent | 55d5ac7b5bd2c89da52398cb4347552e94f2d06d (diff) | |
download | external_llvm-7f99761143cdf1ad23729708e3dcaa055b189406.zip external_llvm-7f99761143cdf1ad23729708e3dcaa055b189406.tar.gz external_llvm-7f99761143cdf1ad23729708e3dcaa055b189406.tar.bz2 |
Avoid constructing std::strings unless pass debugging is ON.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34933 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/LoopPass.cpp')
-rw-r--r-- | lib/Analysis/LoopPass.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/lib/Analysis/LoopPass.cpp b/lib/Analysis/LoopPass.cpp index 4d2e290..40b38f3 100644 --- a/lib/Analysis/LoopPass.cpp +++ b/lib/Analysis/LoopPass.cpp @@ -91,9 +91,6 @@ bool LPPassManager::runOnFunction(Function &F) { for (LoopInfo::iterator I = LI.begin(), E = LI.end(); I != E; ++I) addLoopIntoQueue(*I, LQ); - std::string Msg1 = "Executing Pass '"; - std::string Msg3 = "' Made Modification '"; - // Walk Loops while (!LQ->empty()) { @@ -108,8 +105,7 @@ bool LPPassManager::runOnFunction(Function &F) { AnalysisUsage AnUsage; P->getAnalysisUsage(AnUsage); - std::string Msg2 = "' on Loop ...\n'"; - dumpPassInfo(P, Msg1, Msg2); + dumpPassInfo(P, EXECUTION_MSG, ON_LOOP_MSG, ""); dumpAnalysisSetInfo("Required", P, AnUsage.getRequiredSet()); initializeAnalysisImpl(P); @@ -121,12 +117,12 @@ bool LPPassManager::runOnFunction(Function &F) { StopPassTimer(P); if (Changed) - dumpPassInfo(P, Msg3, Msg2); + dumpPassInfo(P, MODIFICATION_MSG, ON_LOOP_MSG, ""); dumpAnalysisSetInfo("Preserved", P, AnUsage.getPreservedSet()); removeNotPreservedAnalysis(P); recordAvailableAnalysis(P); - removeDeadPasses(P, Msg2); + removeDeadPasses(P, "", ON_LOOP_MSG); if (skipThisLoop) // Do not run other passes on this loop. |