fsm_extract: avoid calling log_signal to determine wire name
authorMarcelina Kościelnicka <mwk@0x04.net>
Mon, 8 Jun 2020 01:48:09 +0000 (03:48 +0200)
committerMarcelina Kościelnicka <mwk@0x04.net>
Mon, 8 Jun 2020 01:49:58 +0000 (03:49 +0200)
commit28b9f49c9411fdde8f9b1f5fac3f79d324676872
treeee46a09d5e0666dc3ebbe425c946b4d0584d4d3d
parent210d129d9ab0f13db179ca556a414baa119b716a
fsm_extract: avoid calling log_signal to determine wire name

log_signal can result in a string with spaces (when bit selection is
involved), which breaks the rule of IdString not containing whitespace.
Instead, remove the sigspec from the name entirely — given that the
resulting wire will have no users, it will be removed later anyway,
so its name doesn't really matter.

Fixes #2118
passes/fsm/fsm_extract.cc