opt_lut: reflect changes in sigmap.

Otherwise, some LUTs will be missed during elimination.
This commit is contained in:
whitequark 2019-01-02 10:21:58 +00:00
parent 06143ab33f
commit c55dfb8369
1 changed files with 2 additions and 0 deletions

View File

@ -271,6 +271,8 @@ struct OptLutWorker
} }
module->connect(lut_output, value); module->connect(lut_output, value);
sigmap.add(lut_output, value);
module->remove(lut); module->remove(lut);
luts.erase(lut); luts.erase(lut);
luts_arity.erase(lut); luts_arity.erase(lut);