Added two debug logging messages to VisitInstructionsTopDown to match VisitInstructionsBottomUp.

llvm-svn: 178895
This commit is contained in:
Michael Gottesman 2013-04-05 18:26:08 +00:00
parent 8622f2c14e
commit bab49e976b
1 changed files with 4 additions and 0 deletions

View File

@ -2063,6 +2063,8 @@ ObjCARCOpt::VisitInstructionTopDown(Instruction *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(Instruction *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);
}