[llvm] r293428 - NewGVN: Fix where newline is printed in debug printing of memory equivalence

Daniel Berlin via llvm-commits llvm-commits at lists.llvm.org
Sun Jan 29 02:26:04 PST 2017


Author: dannyb
Date: Sun Jan 29 04:26:03 2017
New Revision: 293428

URL: http://llvm.org/viewvc/llvm-project?rev=293428&view=rev
Log:
NewGVN: Fix where newline is printed in debug printing of memory equivalence

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

Modified: llvm/trunk/lib/Transforms/Scalar/NewGVN.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/NewGVN.cpp?rev=293428&r1=293427&r2=293428&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/NewGVN.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/NewGVN.cpp Sun Jan 29 04:26:03 2017
@@ -888,8 +888,8 @@ bool NewGVN::setMemoryAccessEquivTo(Memo
     DEBUG(dbgs() << *To->RepMemoryAccess);
   } else {
     DEBUG(dbgs() << " equivalent to itself");
-    DEBUG(dbgs() << "\n");
   }
+  DEBUG(dbgs() << "\n");
 
   auto LookupResult = MemoryAccessToClass.find(From);
   bool Changed = false;




More information about the llvm-commits mailing list