[LoopInterchange] Improve debug output. NFC.
authorChad Rosier <mcrosier@codeaurora.org>
Wed, 7 Sep 2016 16:07:17 +0000 (16:07 +0000)
committerChad Rosier <mcrosier@codeaurora.org>
Wed, 7 Sep 2016 16:07:17 +0000 (16:07 +0000)
llvm-svn: 280820

llvm/lib/Transforms/Scalar/LoopInterchange.cpp

index 428daac..3855118 100644 (file)
@@ -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.