opt_merge: Remove and reinsert init when connecting nets.
authorMarcelina Kościelnicka <mwk@0x04.net>
Sun, 22 Aug 2021 15:01:58 +0000 (17:01 +0200)
committerMarcelina Kościelnicka <mwk@0x04.net>
Sun, 22 Aug 2021 16:34:11 +0000 (18:34 +0200)
commit9cbff3a4a972f359d3842b689e135d4f906d763b
treefe6d45578321155dcf9fdb030b16d8f9ba50feb4
parent62d41d46397a93d1efa2b8282203d192b256d824
opt_merge: Remove and reinsert init when connecting nets.

Mutating the SigMap by adding a new connection will throw off FfInitVals
index.  Work around this by removing the relevant init values from index
whenever we connect nets, then re-add the new init value.

Should fix #2920.
passes/opt/opt_merge.cc