aboutsummaryrefslogtreecommitdiffstats
path: root/src/synth/synthesis.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2022-07-27 05:10:09 +0200
committerTristan Gingold <tgingold@free.fr>2022-07-27 05:10:09 +0200
commit4d2ef5b79a3b4e0a6eb7ce8a3c6aeca7d468797c (patch)
tree687fcf5eb327a215a278052e5821d8eb45da7787 /src/synth/synthesis.adb
parentfb11d0a46b5b1b747e2014f2bce6d30ba93bf760 (diff)
downloadghdl-4d2ef5b79a3b4e0a6eb7ce8a3c6aeca7d468797c.tar.gz
ghdl-4d2ef5b79a3b4e0a6eb7ce8a3c6aeca7d468797c.tar.bz2
ghdl-4d2ef5b79a3b4e0a6eb7ce8a3c6aeca7d468797c.zip
synthesis.adb: cleanup after expand. For #2142
Diffstat (limited to 'src/synth/synthesis.adb')
-rw-r--r--src/synth/synthesis.adb2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/synth/synthesis.adb b/src/synth/synthesis.adb
index 911b2d5f6..e83cdb4ea 100644
--- a/src/synth/synthesis.adb
+++ b/src/synth/synthesis.adb
@@ -100,6 +100,8 @@ package body Synthesis is
if not Synth.Flags.Flag_Debug_Noexpand then
Netlists.Expands.Expand_Gates (Ctxt, M);
+ -- Remove unused dyn_expand inputs.
+ Netlists.Cleanup.Mark_And_Sweep (M);
end if;
end Instance_Passes;