mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-28 19:25:00 +00:00
make -debug-pass=Executions show information about what call graph nodes
are in the SCC for each execution of a CGSCC pass. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81838 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -317,7 +317,20 @@ bool CGPassManager::runOnModule(Module &M) {
|
||||
PassNo != e; ++PassNo) {
|
||||
Pass *P = getContainedPass(PassNo);
|
||||
|
||||
dumpPassInfo(P, EXECUTION_MSG, ON_CG_MSG, "");
|
||||
// If we're in -debug-pass=Executions mode, construct the SCC node list,
|
||||
// otherwise avoid constructing this string as it is expensive.
|
||||
if (isPassDebuggingExecutionsOrMore()) {
|
||||
std::string Functions;
|
||||
#ifndef NDEBUG
|
||||
raw_string_ostream OS(Functions);
|
||||
for (unsigned i = 0, e = CurSCC.size(); i != e; ++i) {
|
||||
if (i) OS << ", ";
|
||||
CurSCC[i]->print(OS);
|
||||
}
|
||||
OS.flush();
|
||||
#endif
|
||||
dumpPassInfo(P, EXECUTION_MSG, ON_CG_MSG, Functions);
|
||||
}
|
||||
dumpRequiredSet(P);
|
||||
|
||||
initializeAnalysisImpl(P);
|
||||
|
Reference in New Issue
Block a user