diff options
author | Chad Rosier <mcrosier@codeaurora.org> | 2016-09-07 16:07:17 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@codeaurora.org> | 2016-09-07 16:07:17 +0000 |
commit | 90bcb9176e0aff2d11fac14b9fe58088347fa397 (patch) | |
tree | 42fced91eb1f2b09e24a39bc0ba45aead83ff5a4 /llvm/lib/Transforms | |
parent | f5814f56b8cd1eefbd37a80b802f5ac0d4bf420e (diff) | |
download | bcm5719-llvm-90bcb9176e0aff2d11fac14b9fe58088347fa397.tar.gz bcm5719-llvm-90bcb9176e0aff2d11fac14b9fe58088347fa397.zip |
[LoopInterchange] Improve debug output. NFC.
llvm-svn: 280820
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r-- | llvm/lib/Transforms/Scalar/LoopInterchange.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopInterchange.cpp b/llvm/lib/Transforms/Scalar/LoopInterchange.cpp index 428daac7ea3..3855118a4da 100644 --- a/llvm/lib/Transforms/Scalar/LoopInterchange.cpp +++ b/llvm/lib/Transforms/Scalar/LoopInterchange.cpp @@ -111,14 +111,14 @@ static bool populateDependencyMatrix(CharMatrix &DepMatrix, unsigned Level, for (J = I, JE = MemInstr.end(); J != JE; ++J) { std::vector<char> Dep; Instruction *Src = dyn_cast<Instruction>(*I); - Instruction *Des = dyn_cast<Instruction>(*J); - if (Src == Des) + Instruction *Dst = dyn_cast<Instruction>(*J); + if (Src == Dst) continue; - if (isa<LoadInst>(Src) && isa<LoadInst>(Des)) + if (isa<LoadInst>(Src) && isa<LoadInst>(Dst)) continue; - if (auto D = DI->depends(Src, Des, true)) { - DEBUG(dbgs() << "Found Dependency between Src=" << Src << " Des=" << Des - << "\n"); + if (auto D = DI->depends(Src, Dst, true)) { + DEBUG(dbgs() << "Found Dependency between Src and Dst\n" + << " Src:" << *Src << "\n Dst:" << *Dst << '\n'); if (D->isFlow()) { // TODO: Handle Flow dependence.Check if it is sufficient to populate // the Dependence Matrix with the direction reversed. |