Slightly more useful tracing.
authorAndrew Trick <atrick@apple.com>
Thu, 13 Oct 2011 17:06:38 +0000 (17:06 +0000)
committerAndrew Trick <atrick@apple.com>
Thu, 13 Oct 2011 17:06:38 +0000 (17:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141867 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/IVUsers.cpp

index e5f0a77ab67d57aba5910c31ecaefe85886425bd..d0ca8920ab9f0f96232f94e313d4e60e0b934d35 100644 (file)
@@ -146,7 +146,8 @@ bool IVUsers::AddUsersIfInteresting(Instruction *I) {
                                    ISE, User, I,
                                    NewUse.PostIncLoops,
                                    *SE, *DT);
-      DEBUG(dbgs() << "   NORMALIZED TO: " << *ISE << '\n');
+      DEBUG(if (SE->getSCEV(I) != ISE)
+              dbgs() << "   NORMALIZED TO: " << *ISE << '\n');
     }
   }
   return true;