[llvm] r280820 - [LoopInterchange] Improve debug output. NFC.

Chad Rosier via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 7 09:07:17 PDT 2016


Author: mcrosier
Date: Wed Sep  7 11:07:17 2016
New Revision: 280820

URL: http://llvm.org/viewvc/llvm-project?rev=280820&view=rev
Log:
[LoopInterchange] Improve debug output. NFC.

Modified:
    llvm/trunk/lib/Transforms/Scalar/LoopInterchange.cpp

Modified: llvm/trunk/lib/Transforms/Scalar/LoopInterchange.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/LoopInterchange.cpp?rev=280820&r1=280819&r2=280820&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/LoopInterchange.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/LoopInterchange.cpp Wed Sep  7 11:07:17 2016
@@ -111,14 +111,14 @@ static bool populateDependencyMatrix(Cha
     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.




More information about the llvm-commits mailing list