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

llvm-svn: 349873
This commit is contained in:
Reid Kleckner 2018-12-21 01:41:20 +00:00
parent 0a6096bab2
commit b894ecf903
1 changed files with 2 additions and 0 deletions

View File

@ -1060,6 +1060,8 @@ bool MemCpyOptPass::processMemCpyMemCpyDependence(MemCpyInst *M,
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.