diff options
author | Eddie Hung <eddie@fpgeh.com> | 2019-05-02 10:44:59 -0700 |
---|---|---|
committer | Eddie Hung <eddie@fpgeh.com> | 2019-05-02 10:44:59 -0700 |
commit | 5cd19b52da297cc7d44e9bf11dc9d1664a02ccce (patch) | |
tree | 6206a4fa059c47a56cc43914d4141a386a5f2c7f /frontends/ast/simplify.cc | |
parent | 4aca928033874e8e35ecc4a18f22475c00bebad9 (diff) | |
parent | 98925f6c4be611434e75f0ccf645a7ef8adcfc63 (diff) | |
download | yosys-5cd19b52da297cc7d44e9bf11dc9d1664a02ccce.tar.gz yosys-5cd19b52da297cc7d44e9bf11dc9d1664a02ccce.tar.bz2 yosys-5cd19b52da297cc7d44e9bf11dc9d1664a02ccce.zip |
Merge remote-tracking branch 'origin/master' into xc7mux
Diffstat (limited to 'frontends/ast/simplify.cc')
-rw-r--r-- | frontends/ast/simplify.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/frontends/ast/simplify.cc b/frontends/ast/simplify.cc index 3e453bd7f..4d4b9dfe1 100644 --- a/frontends/ast/simplify.cc +++ b/frontends/ast/simplify.cc @@ -1172,6 +1172,15 @@ bool AstNode::simplify(bool const_fold, bool at_zero, bool in_lvalue, int stage, varbuf->children[0] = buf; } +#if 0 + if (type == AST_FOR) { + AstNode *buf = next_ast->clone(); + delete buf->children[1]; + buf->children[1] = varbuf->children[0]->clone(); + current_block->children.insert(current_block->children.begin() + current_block_idx++, buf); + } +#endif + current_scope[varbuf->str] = backup_scope_varbuf; delete varbuf; delete_children(); |