[LAA] Include function name in debug output

llvm-svn: 258088
This commit is contained in:
Adam Nemet 2016-01-18 21:16:33 +00:00
parent 5e82324fe4
commit d8968f0945
1 changed files with 4 additions and 3 deletions

View File

@ -1305,8 +1305,9 @@ void MemoryDepChecker::Dependence::print(
bool LoopAccessInfo::canAnalyzeLoop() { bool LoopAccessInfo::canAnalyzeLoop() {
// We need to have a loop header. // We need to have a loop header.
DEBUG(dbgs() << "LAA: Found a loop: " << DEBUG(dbgs() << "LAA: Found a loop in "
TheLoop->getHeader()->getName() << '\n'); << TheLoop->getHeader()->getParent()->getName() << ": "
<< TheLoop->getHeader()->getName() << '\n');
// We can only analyze innermost loops. // We can only analyze innermost loops.
if (!TheLoop->empty()) { if (!TheLoop->empty()) {