1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 03:23:01 +02:00

[Attributor][NFC] Improve debug message

This commit is contained in:
Johannes Doerfert 2020-01-11 23:36:17 -06:00
parent e0376489be
commit 9af8136f8d

View File

@ -7705,10 +7705,12 @@ static bool runAttributorOnFunctions(InformationCache &InfoCache,
A.identifyDefaultAbstractAttributes(*F);
}
bool Changed = A.run() == ChangeStatus::CHANGED;
ChangeStatus Changed = A.run();
assert(!verifyModule(*Functions.front()->getParent(), &errs()) &&
"Module verification failed!");
return Changed;
LLVM_DEBUG(dbgs() << "[Attributor] Done with " << Functions.size()
<< " functions, result: " << Changed << ".\n");
return Changed == ChangeStatus::CHANGED;
}
PreservedAnalyses AttributorPass::run(Module &M, ModuleAnalysisManager &AM) {