diff options
author | Maciej Kurc <mkurc@antmicro.com> | 2021-09-28 18:01:30 +0200 |
---|---|---|
committer | Maciej Kurc <mkurc@antmicro.com> | 2021-09-28 18:01:30 +0200 |
commit | 1ed692aca90a9a103fc5e15aeeae31b515072035 (patch) | |
tree | ade289780f110794dee7cc0ac041caa788fd6ca2 | |
parent | 9018782eaaec23c57987266629b23484cfd9b984 (diff) | |
download | nextpnr-1ed692aca90a9a103fc5e15aeeae31b515072035.tar.gz nextpnr-1ed692aca90a9a103fc5e15aeeae31b515072035.tar.bz2 nextpnr-1ed692aca90a9a103fc5e15aeeae31b515072035.zip |
Shifted moving of data containers after printing
Signed-off-by: Maciej Kurc <mkurc@antmicro.com>
-rw-r--r-- | common/timing.cc | 22 |
1 files changed, 11 insertions, 11 deletions
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 |