diff options
author | Jannis Harder <me@jix.one> | 2022-12-19 16:05:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-19 16:05:13 +0100 |
commit | 3ebc50dee4007f8cca4ffc0e850bc3e86f7641f4 (patch) | |
tree | 727967084bf0df0e75b4d5572559d0b071fdcaae /frontends/ast | |
parent | 69cbef9666a18bb7ce9fc7f6e87083ee12bd3177 (diff) | |
parent | cf3570abde2351ae15892eb7318eccec48582a5d (diff) | |
download | yosys-3ebc50dee4007f8cca4ffc0e850bc3e86f7641f4.tar.gz yosys-3ebc50dee4007f8cca4ffc0e850bc3e86f7641f4.tar.bz2 yosys-3ebc50dee4007f8cca4ffc0e850bc3e86f7641f4.zip |
Merge pull request #3467 from jix/fix_cellarray_simplify
simplify: Do not recursively simplify AST_CELL within AST_CELLARRAY
Diffstat (limited to 'frontends/ast')
-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 349b87578..da7933d2f 100644 --- a/frontends/ast/simplify.cc +++ b/frontends/ast/simplify.cc @@ -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) |