diff options
author | Clifford Wolf <clifford@clifford.at> | 2017-01-15 13:52:50 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2017-01-15 13:52:50 +0100 |
commit | 78f65f89ffc1d5c5237009c19e84e625ce3085aa (patch) | |
tree | b62c4f17499474b4aae8521a8637b7b78779d5e7 /frontends | |
parent | b7cfb7dbd250a8595589f86e1b38b67015c7b9c5 (diff) | |
download | yosys-78f65f89ffc1d5c5237009c19e84e625ce3085aa.tar.gz yosys-78f65f89ffc1d5c5237009c19e84e625ce3085aa.tar.bz2 yosys-78f65f89ffc1d5c5237009c19e84e625ce3085aa.zip |
Fix bug in AstNode::mem2reg_as_needed_pass2()
Diffstat (limited to 'frontends')
-rw-r--r-- | frontends/ast/simplify.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/frontends/ast/simplify.cc b/frontends/ast/simplify.cc index de85355b5..c1e77c6ec 100644 --- a/frontends/ast/simplify.cc +++ b/frontends/ast/simplify.cc @@ -3079,6 +3079,8 @@ bool AstNode::mem2reg_as_needed_pass2(pool<AstNode*> &mem2reg_set, AstNode *mod, if (bit_part_sel) children.push_back(bit_part_sel); + + did_something = true; } log_assert(id2ast == NULL || mem2reg_set.count(id2ast) == 0); |