proc_prune: promote assigns to module connections when legal.
authorwhitequark <whitequark@whitequark.org>
Tue, 9 Jul 2019 08:14:52 +0000 (08:14 +0000)
committerwhitequark <whitequark@whitequark.org>
Tue, 9 Jul 2019 09:30:58 +0000 (09:30 +0000)
commit44bcb7a187ffa00921cb14fa50428ce272ce3b6b
treeb9f0636001c8fb2464afdbcc5521fc07d0ea5ff0
parent5fe0ffe30f315d50b2405c2d436ad8e7ca9ba2f6
proc_prune: promote assigns to module connections when legal.

This can pave the way for further transformations by exposing
identities that were previously hidden in a process to any pass that
uses SigMap. Indeed, this commit removes some ad-hoc logic from
proc_init that appears to have been tailored to the output of
genrtlil in favor of using `SigMap.apply()`. (This removal is not
optional, as the ad-hoc logic cannot cope with the result of running
proc_prune; a similar issue was fixed in proc_arst.)
passes/proc/proc_arst.cc
passes/proc/proc_init.cc
passes/proc/proc_prune.cc