[llvm-commits] [llvm] r172298 - /llvm/trunk/lib/Transforms/Scalar/ObjCARC.cpp
Michael Gottesman
mgottesman at apple.com
Fri Jan 11 18:57:16 PST 2013
Author: mgottesman
Date: Fri Jan 11 20:57:16 2013
New Revision: 172298
URL: http://llvm.org/viewvc/llvm-project?rev=172298&view=rev
Log:
Fixed a few debug messages in ObjCARC and added one.
Modified:
llvm/trunk/lib/Transforms/Scalar/ObjCARC.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/ObjCARC.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/ObjCARC.cpp?rev=172298&r1=172297&r2=172298&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/ObjCARC.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/ObjCARC.cpp Fri Jan 11 20:57:16 2013
@@ -2602,10 +2602,8 @@
}
}
} while (!Worklist.empty());
-
- DEBUG(dbgs() << "ObjCARCOpt::OptimizeIndividualCalls: Finished Queue.\n\n");
-
}
+ DEBUG(dbgs() << "ObjCARCOpt::OptimizeIndividualCalls: Finished List.\n");
}
/// CheckForCFGHazards - Check for critical edges, loop boundaries, irreducible
@@ -3869,6 +3867,8 @@
Changed = false;
+ DEBUG(dbgs() << "ObjCARCOpt: Visiting Function: " << F.getName() << "\n");
+
PA.setAA(&getAnalysis<AliasAnalysis>());
// This pass performs several distinct transformations. As a compile-time aid
@@ -3902,6 +3902,8 @@
(1 << IC_AutoreleaseRV)))
OptimizeReturns(F);
+ DEBUG(dbgs() << "\n");
+
return Changed;
}
More information about the llvm-commits
mailing list