From: Eddie Hung Date: Thu, 12 Mar 2020 21:42:07 +0000 (-0700) Subject: kernel: separate IdString::put_reference() out to help inlining X-Git-Tag: working-ls180~697^2~6 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6d4f01c3fa5b068e7ba55b21ed5f71446fcbc518;p=yosys.git kernel: separate IdString::put_reference() out to help inlining --- diff --git a/kernel/rtlil.h b/kernel/rtlil.h index 1283db134..f6ba9a663 100644 --- a/kernel/rtlil.h +++ b/kernel/rtlil.h @@ -235,7 +235,10 @@ namespace RTLIL return; log_assert(refcount == 0); - + free_reference(idx); + } + static inline void free_reference(int idx) + { if (yosys_xtrace) { log("#X# Removed IdString '%s' with index %d.\n", global_id_storage_.at(idx), idx); log_backtrace("-X- ", yosys_xtrace-1);