Fixed undef handling in opt_reduce
authorClifford Wolf <clifford@clifford.at>
Thu, 6 Mar 2014 13:18:34 +0000 (14:18 +0100)
committerClifford Wolf <clifford@clifford.at>
Thu, 6 Mar 2014 13:18:34 +0000 (14:18 +0100)
passes/opt/opt_reduce.cc

index dd1299810f9314cd34efd7c77393d628d8e24452..fee8fb71b1069119cec512b29d81646e0a76dc92 100644 (file)
@@ -65,8 +65,8 @@ struct OptReduceWorker
                                continue;
                        }
                        if (chunk.wire == NULL) {
-                               new_sig_a = RTLIL::SigSpec(RTLIL::State::Sx);
-                               break;
+                               new_sig_a.append(chunk);
+                               continue;
                        }
 
                        bool imported_children = false;