Commit 55d887b8 authored by Wei Wang's avatar Wei Wang
Browse files

[time-trace] Add optimizer and codegen regions to NPM

Optimizer and codegen regions were only added to legacy PM. Add
them to NPM as well.

Differential Revision:
parent b1856009
Pipeline #186938 failed with stage
in 17 minutes and 43 seconds
......@@ -1492,8 +1492,11 @@ void EmitAssemblyHelper::RunOptimizationPipeline(
// Now that we have all of the passes ready, run them.
PrettyStackTraceString CrashInfo("Optimizer");*TheModule, MAM);
PrettyStackTraceString CrashInfo("Optimizer");
llvm::TimeTraceScope TimeScope("Optimizer");*TheModule, MAM);
void EmitAssemblyHelper::RunCodegenPipeline(
......@@ -1525,8 +1528,11 @@ void EmitAssemblyHelper::RunCodegenPipeline(
PrettyStackTraceString CrashInfo("Code generation");*TheModule);
PrettyStackTraceString CrashInfo("Code generation");
llvm::TimeTraceScope TimeScope("CodeGenPasses");*TheModule);
/// A clean version of `EmitAssembly` that uses the new pass manager.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment