[llvm] r178895 - Added two debug logging messages to VisitInstructionsTopDown to match VisitInstructionsBottomUp.
Michael Gottesman
mgottesman at apple.com
Fri Apr 5 11:26:08 PDT 2013
Author: mgottesman
Date: Fri Apr 5 13:26:08 2013
New Revision: 178895
URL: http://llvm.org/viewvc/llvm-project?rev=178895&view=rev
Log:
Added two debug logging messages to VisitInstructionsTopDown to match VisitInstructionsBottomUp.
Modified:
llvm/trunk/lib/Transforms/ObjCARC/ObjCARCOpts.cpp
Modified: llvm/trunk/lib/Transforms/ObjCARC/ObjCARCOpts.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/ObjCARC/ObjCARCOpts.cpp?rev=178895&r1=178894&r2=178895&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/ObjCARC/ObjCARCOpts.cpp (original)
+++ llvm/trunk/lib/Transforms/ObjCARC/ObjCARCOpts.cpp Fri Apr 5 13:26:08 2013
@@ -2063,6 +2063,8 @@ ObjCARCOpt::VisitInstructionTopDown(Inst
// Check for possible releases.
if (CanAlterRefCount(Inst, Ptr, PA, Class)) {
+ DEBUG(dbgs() << "CanAlterRefCount: Seq: " << Seq << "; " << *Ptr
+ << "\n");
S.ClearKnownPositiveRefCount();
switch (Seq) {
case S_Retain:
@@ -2090,6 +2092,8 @@ ObjCARCOpt::VisitInstructionTopDown(Inst
switch (Seq) {
case S_CanRelease:
if (CanUse(Inst, Ptr, PA, Class)) {
+ DEBUG(dbgs() << "CanUse: Seq: " << Seq << "; " << *Ptr
+ << "\n");
S.SetSeq(S_Use);
ANNOTATE_TOPDOWN(Inst, Ptr, Seq, S_Use);
}
More information about the llvm-commits
mailing list