proc_prune: fix handling of exactly identical assigns.
authorwhitequark <whitequark@whitequark.org>
Thu, 8 Aug 2019 05:28:01 +0000 (05:28 +0000)
committerwhitequark <whitequark@whitequark.org>
Thu, 8 Aug 2019 05:32:35 +0000 (05:32 +0000)
commit0b09a347dc0163ee19fd4aaa4d306bc82ce7d6d8
treeadef6cc5dea44944c6291b8fad222607ed68e7f9
parent3414ee1e3fe37d4bf383621542828d4fc8fc987f
proc_prune: fix handling of exactly identical assigns.

Before this commit, in a process like:
   process $proc$bug.v:8$3
     assign $foo \bar
     switch \sel
       case 1'1
         assign $foo 1'1
         assign $foo 1'1
       case
         assign $foo 1'0
     end
   end
both of the "assign $foo 1'1" would incorrectly be removed.

Fixes #1243.
passes/proc/proc_prune.cc