[llvm] r349873 - [memcpyopt] Add debug logs when forwarding memcpy src to dst

Reid Kleckner via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 20 17:41:20 PST 2018


Author: rnk
Date: Thu Dec 20 17:41:20 2018
New Revision: 349873

URL: http://llvm.org/viewvc/llvm-project?rev=349873&view=rev
Log:
[memcpyopt] Add debug logs when forwarding memcpy src to dst

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

Modified: llvm/trunk/lib/Transforms/Scalar/MemCpyOptimizer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/MemCpyOptimizer.cpp?rev=349873&r1=349872&r2=349873&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/MemCpyOptimizer.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/MemCpyOptimizer.cpp Thu Dec 20 17:41:20 2018
@@ -1060,6 +1060,8 @@ bool MemCpyOptPass::processMemCpyMemCpyD
     UseMemMove = true;
 
   // If all checks passed, then we can transform M.
+  LLVM_DEBUG(dbgs() << "MemCpyOptPass: Forwarding memcpy->memcpy src:\n"
+                    << *MDep << '\n' << *M << '\n');
 
   // TODO: Is this worth it if we're creating a less aligned memcpy? For
   // example we could be moving from movaps -> movq on x86.




More information about the llvm-commits mailing list