From: Andrew Zonenberg Date: Fri, 11 Aug 2017 23:47:07 +0000 (-0700) Subject: Improved handling of constant connections in opt_rmports X-Git-Tag: yosys-0.8~345^2~1^2~5 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1bb150c2318a16e8007b4cf76aa2a199f49f0f7e;p=yosys.git Improved handling of constant connections in opt_rmports --- diff --git a/passes/opt/opt_rmports.cc b/passes/opt/opt_rmports.cc index 5522dfa8e..a7a2df866 100644 --- a/passes/opt/opt_rmports.cc +++ b/passes/opt/opt_rmports.cc @@ -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());