Improved handling of constant connections in opt_rmports
authorAndrew Zonenberg <azonenberg@drawersteak.com>
Fri, 11 Aug 2017 23:47:07 +0000 (16:47 -0700)
committerAndrew Zonenberg <azonenberg@drawersteak.com>
Mon, 14 Aug 2017 17:28:19 +0000 (10:28 -0700)
passes/opt/opt_rmports.cc

index 5522dfa8efc1332d1f2c77d35b107da81f0e0c6e..a7a2df866ca64bfc64a53f9b0038b466e788be27 100644 (file)
@@ -69,6 +69,8 @@ struct OptRmportsPass : public Pass {
                        {
                                auto w1 = s1[i].wire;
                                auto w2 = s2[i].wire;
+                               if( (w1 == NULL) || (w2 == NULL) )
+                                       continue;
 
                                //log("  conn %s, %s\n", w1->name.c_str(), w2->name.c_str());