opt_lut: reflect changes in sigmap.
authorwhitequark <whitequark@whitequark.org>
Wed, 2 Jan 2019 10:21:58 +0000 (10:21 +0000)
committerwhitequark <whitequark@whitequark.org>
Wed, 2 Jan 2019 10:21:58 +0000 (10:21 +0000)
Otherwise, some LUTs will be missed during elimination.

passes/opt/opt_lut.cc

index a79a9a2da285369c51e48bc14e21a8def87ca1fe..b9a1ce7a7a4aaed1f4558440e1a85e92de777653 100644 (file)
@@ -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);