kernel: separate IdString::put_reference() out to help inlining
authorEddie Hung <eddie@fpgeh.com>
Thu, 12 Mar 2020 21:42:07 +0000 (14:42 -0700)
committerEddie Hung <eddie@fpgeh.com>
Thu, 2 Apr 2020 14:14:08 +0000 (07:14 -0700)
kernel/rtlil.h

index 1283db1344340dc0bac119ed59c0d1209fbd61e5..f6ba9a66374d6c0fb6fbba59af3fb841ed5556e4 100644 (file)
@@ -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);