[llvm-commits] CVS: llvm/lib/Analysis/LoopPass.cpp
Devang Patel
dpatel at apple.com
Mon Mar 5 12:01:52 PST 2007
Changes in directory llvm/lib/Analysis:
LoopPass.cpp updated: 1.8 -> 1.9
---
Log message:
Avoid constructing std::strings unless pass debugging is ON.
---
Diffs of the changes: (+3 -7)
LoopPass.cpp | 10 +++-------
1 files changed, 3 insertions(+), 7 deletions(-)
Index: llvm/lib/Analysis/LoopPass.cpp
diff -u llvm/lib/Analysis/LoopPass.cpp:1.8 llvm/lib/Analysis/LoopPass.cpp:1.9
--- llvm/lib/Analysis/LoopPass.cpp:1.8 Fri Feb 23 12:05:55 2007
+++ llvm/lib/Analysis/LoopPass.cpp Mon Mar 5 14:01:30 2007
@@ -91,9 +91,6 @@
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 @@
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 @@
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.
More information about the llvm-commits
mailing list