diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-04-25 18:01:32 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-04-25 18:01:32 +0000 |
commit | 293673d7889af68278e0e6bb29cda6fe3e7f726b (patch) | |
tree | b55073638ced899954424626ce29df8c74ff68cc /llvm/lib/Transforms | |
parent | 01f201f484c66a88ea9062f04dcbc15cc69507ab (diff) | |
download | bcm5719-llvm-293673d7889af68278e0e6bb29cda6fe3e7f726b.tar.gz bcm5719-llvm-293673d7889af68278e0e6bb29cda6fe3e7f726b.zip |
Print IV chain numbers while collecting them.
llvm-svn: 155567
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r-- | llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp index fe4700b36e7..803feb4fd72 100644 --- a/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp +++ b/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp @@ -2487,12 +2487,12 @@ void LSRInstance::ChainInstruction(Instruction *UserInst, Instruction *IVOper, ++NChains; IVChainVec.resize(NChains); ChainUsersVec.resize(NChains); - DEBUG(dbgs() << "IV Head: (" << *UserInst << ") IV=" << *LastIncExpr - << "\n"); + DEBUG(dbgs() << "IV Chain#" << ChainIdx << " Head: (" << *UserInst + << ") IV=" << *LastIncExpr << "\n"); } else - DEBUG(dbgs() << "IV Inc: (" << *UserInst << ") IV+" << *LastIncExpr - << "\n"); + DEBUG(dbgs() << "IV Chain#" << ChainIdx << " Inc: (" << *UserInst + << ") IV+" << *LastIncExpr << "\n"); // Add this IV user to the end of the chain. IVChainVec[ChainIdx].push_back(IVInc(UserInst, IVOper, LastIncExpr)); @@ -2551,6 +2551,7 @@ void LSRInstance::ChainInstruction(Instruction *UserInst, Instruction *IVOper, /// loop latch. This will discover chains on side paths, but requires /// maintaining multiple copies of the Chains state. void LSRInstance::CollectChains() { + DEBUG(dbgs() << "Collecting IV Chains.\n"); SmallVector<ChainUsers, 8> ChainUsersVec; SmallVector<BasicBlock *,8> LatchPath; |