projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2877d5e
)
Improved handling of constant connections in opt_rmports
author
Andrew Zonenberg
<azonenberg@drawersteak.com>
Fri, 11 Aug 2017 23:47:07 +0000
(16:47 -0700)
committer
Andrew Zonenberg
<azonenberg@drawersteak.com>
Mon, 14 Aug 2017 17:28:19 +0000
(10:28 -0700)
passes/opt/opt_rmports.cc
patch
|
blob
|
history
diff --git
a/passes/opt/opt_rmports.cc
b/passes/opt/opt_rmports.cc
index 5522dfa8efc1332d1f2c77d35b107da81f0e0c6e..a7a2df866ca64bfc64a53f9b0038b466e788be27 100644
(file)
--- 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());