From adfe72b33cb753c2e00437099e2412c6eaa5c6cc Mon Sep 17 00:00:00 2001 From: Andrew Trick Date: Thu, 13 Oct 2011 17:06:38 +0000 Subject: [PATCH] Slightly more useful tracing. llvm-svn: 141867 --- llvm/lib/Analysis/IVUsers.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/llvm/lib/Analysis/IVUsers.cpp b/llvm/lib/Analysis/IVUsers.cpp index e5f0a77ab67d..d0ca8920ab9f 100644 --- a/llvm/lib/Analysis/IVUsers.cpp +++ b/llvm/lib/Analysis/IVUsers.cpp @@ -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;