mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-27 19:05:52 +00:00
Merge pull request #3467 from jix/fix_cellarray_simplify
simplify: Do not recursively simplify AST_CELL within AST_CELLARRAY
This commit is contained in:
commit
3ebc50dee4
2 changed files with 47 additions and 0 deletions
|
@ -1607,6 +1607,8 @@ bool AstNode::simplify(bool const_fold, bool at_zero, bool in_lvalue, int stage,
|
|||
break;
|
||||
if (type == AST_GENBLOCK)
|
||||
break;
|
||||
if (type == AST_CELLARRAY && children[i]->type == AST_CELL)
|
||||
continue;
|
||||
if (type == AST_BLOCK && !str.empty())
|
||||
break;
|
||||
if (type == AST_PREFIX && i >= 1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue