From: Clifford Wolf Date: Sun, 15 Jan 2017 12:52:50 +0000 (+0100) Subject: Fix bug in AstNode::mem2reg_as_needed_pass2() X-Git-Tag: yosys-0.8~535 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=78f65f89ffc1d5c5237009c19e84e625ce3085aa;p=yosys.git Fix bug in AstNode::mem2reg_as_needed_pass2() --- 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 &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);