aboutsummaryrefslogtreecommitdiffstats
path: root/tests/proc/rmdead.ys
diff options
context:
space:
mode:
authorZachary Snow <zach@zachjs.com>2021-07-28 17:34:24 -0400
committerZachary Snow <zachary.j.snow@gmail.com>2021-07-29 20:55:59 -0400
commitc016f6a4236fb970196f35c2afb0f2c7c237a77f (patch)
tree6d7902946f6a5b662217fbd2d9a63a513c10e70c /tests/proc/rmdead.ys
parent4fec3a85cd7d0fcd35f958bfc89090df25f7de3c (diff)
downloadyosys-c016f6a4236fb970196f35c2afb0f2c7c237a77f.tar.gz
yosys-c016f6a4236fb970196f35c2afb0f2c7c237a77f.tar.bz2
yosys-c016f6a4236fb970196f35c2afb0f2c7c237a77f.zip
proc_rmdead: use explicit pattern set when there are no wildcards
If width of a case expression was large, explicit patterns could cause the existing logic to take an extremely long time, or exhaust the maximum size of the underlying set. For cases where all of the patterns are fully defined and there are no constants in the case expression, this change uses a simple set to track which patterns have been seen.
Diffstat (limited to 'tests/proc/rmdead.ys')
-rw-r--r--tests/proc/rmdead.ys4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/proc/rmdead.ys b/tests/proc/rmdead.ys
new file mode 100644
index 000000000..697d899e3
--- /dev/null
+++ b/tests/proc/rmdead.ys
@@ -0,0 +1,4 @@
+read_verilog rmdead.v
+proc
+opt_clean
+select -assert-count 0 w:fail