From 1ed692aca90a9a103fc5e15aeeae31b515072035 Mon Sep 17 00:00:00 2001 From: Maciej Kurc Date: Tue, 28 Sep 2021 18:01:30 +0200 Subject: Shifted moving of data containers after printing Signed-off-by: Maciej Kurc --- common/timing.cc | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'common') diff --git a/common/timing.cc b/common/timing.cc index 76bcfd64..b6d9b325 100644 --- a/common/timing.cc +++ b/common/timing.cc @@ -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 -- cgit v1.2.3