From 596743a6b6f216014804beadc4b70d7a81c3eb89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Povi=C5=A1er?= Date: Wed, 19 Jul 2023 16:55:30 +0200 Subject: [PATCH] verilog_backend: Make the keywords pool static Do not recreate the keywords pool on every lookup of an identifier. --- backends/verilog/verilog_backend.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backends/verilog/verilog_backend.cc b/backends/verilog/verilog_backend.cc index 3da168960..7b6a4c93e 100644 --- a/backends/verilog/verilog_backend.cc +++ b/backends/verilog/verilog_backend.cc @@ -129,7 +129,7 @@ std::string id(RTLIL::IdString internal_id, bool may_rename = true) break; } - const pool keywords = { + static const pool keywords = { // IEEE 1800-2017 Annex B "accept_on", "alias", "always", "always_comb", "always_ff", "always_latch", "and", "assert", "assign", "assume", "automatic", "before", "begin", "bind", "bins", "binsof", "bit", "break", "buf", "bufif0", "bufif1", "byte", "case", "casex", "casez", "cell", "chandle",