Shifted moving of data containers after printing

Signed-off-by: Maciej Kurc <mkurc@antmicro.com>
This commit is contained in:
Maciej Kurc 2021-09-28 18:01:30 +02:00
parent 9018782eaa
commit 1ed692aca9

View File

@ -1299,17 +1299,6 @@ void timing_analysis(Context *ctx, bool print_histogram, bool print_fmax, bool p
}
}
// Update timing results in the context
if (update_results) {
auto& results = ctx->timing_result;
results.clock_fmax = std::move(clock_fmax);
results.clock_paths = std::move(clock_reports);
results.xclock_paths = std::move(xclock_reports);
results.detailed_net_timings = std::move(detailed_net_timings);
}
// Print critical paths
if (print_path) {
@ -1500,6 +1489,17 @@ void timing_analysis(Context *ctx, bool print_histogram, bool print_fmax, bool p
std::string(bins[i] * bar_width / max_freq, '*').c_str(),
(bins[i] * bar_width) % max_freq > 0 ? '+' : ' ');
}
// Update timing results in the context
if (update_results) {
auto& results = ctx->timing_result;
results.clock_fmax = std::move(clock_fmax);
results.clock_paths = std::move(clock_reports);
results.xclock_paths = std::move(xclock_reports);
results.detailed_net_timings = std::move(detailed_net_timings);
}
}
NEXTPNR_NAMESPACE_END