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 | 165324cd7da5d4c534c52f7db51e6ef0c185cf5b (patch) | |
tree | 5a29f1c008a2c4fc6d869b627cecb0db8f775119 /lib/Transforms/Scalar/LoopStrengthReduce.cpp | |
parent | a0b0219a9e13ecd193eee604ab22ffc74b516b02 (diff) | |
download | external_llvm-165324cd7da5d4c534c52f7db51e6ef0c185cf5b.zip external_llvm-165324cd7da5d4c534c52f7db51e6ef0c185cf5b.tar.gz external_llvm-165324cd7da5d4c534c52f7db51e6ef0c185cf5b.tar.bz2 |
Print IV chain numbers while collecting them.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@155567 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/LoopStrengthReduce.cpp')
-rw-r--r-- | lib/Transforms/Scalar/LoopStrengthReduce.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/lib/Transforms/Scalar/LoopStrengthReduce.cpp index fe4700b..803feb4 100644 --- a/lib/Transforms/Scalar/LoopStrengthReduce.cpp +++ b/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; |