From: whitequark Date: Wed, 2 Jan 2019 10:21:58 +0000 (+0000) Subject: opt_lut: reflect changes in sigmap. X-Git-Tag: yosys-0.9~349^2~1^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c55dfb83693c6707ecb1d7dce7824a61e87eb44d;p=yosys.git opt_lut: reflect changes in sigmap. Otherwise, some LUTs will be missed during elimination. --- diff --git a/passes/opt/opt_lut.cc b/passes/opt/opt_lut.cc index a79a9a2da..b9a1ce7a7 100644 --- a/passes/opt/opt_lut.cc +++ b/passes/opt/opt_lut.cc @@ -271,6 +271,8 @@ struct OptLutWorker } module->connect(lut_output, value); + sigmap.add(lut_output, value); + module->remove(lut); luts.erase(lut); luts_arity.erase(lut);