aboutsummaryrefslogtreecommitdiffstats
path: root/src/synth/synth-environment.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2019-12-31 18:55:44 +0100
committerTristan Gingold <tgingold@free.fr>2019-12-31 18:57:44 +0100
commit3485a2054df425a54796ce69f28d19b6eea2b868 (patch)
tree58293caff9f2426c061cd621432cc56fa9ecabd4 /src/synth/synth-environment.adb
parent03e71f74ace9dbd543435b5f94df87b83bb7d54f (diff)
downloadghdl-3485a2054df425a54796ce69f28d19b6eea2b868.tar.gz
ghdl-3485a2054df425a54796ce69f28d19b6eea2b868.tar.bz2
ghdl-3485a2054df425a54796ce69f28d19b6eea2b868.zip
synth-environment: also optimize mux merge for sub-nets.
Diffstat (limited to 'src/synth/synth-environment.adb')
-rw-r--r--src/synth/synth-environment.adb2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/synth/synth-environment.adb b/src/synth/synth-environment.adb
index 11c4b505d..0f5d8816e 100644
--- a/src/synth/synth-environment.adb
+++ b/src/synth/synth-environment.adb
@@ -1018,7 +1018,7 @@ package body Synth.Environment is
-- Build mux.
N1_Inst := Get_Net_Parent (N (1));
if Get_Id (N1_Inst) = Id_Mux2
- and then Get_Driver (Get_Mux2_I0 (N1_Inst)) = N (0)
+ and then Same_Net (Get_Driver (Get_Mux2_I0 (N1_Inst)), N (0))
then
Res := Build_Mux2
(Ctxt, Build_Dyadic (Ctxt, Id_And,