From 1bb150c2318a16e8007b4cf76aa2a199f49f0f7e Mon Sep 17 00:00:00 2001 From: Andrew Zonenberg Date: Fri, 11 Aug 2017 16:47:07 -0700 Subject: [PATCH] Improved handling of constant connections in opt_rmports --- passes/opt/opt_rmports.cc | 2 ++ 1 file changed, 2 insertions(+) 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()); -- 2.30.2