aboutsummaryrefslogtreecommitdiffstats
path: root/frontends/ast/simplify.cc
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2019-05-01 18:09:38 -0700
committerEddie Hung <eddie@fpgeh.com>2019-05-01 18:09:38 -0700
commit31ff0d8ef529a1ddfa37e4b68017e4e433399da7 (patch)
tree921a3a801a4e7bc9d8998b0aa7f21506db7881e6 /frontends/ast/simplify.cc
parente97178a888cebc6acacb8f8f2c68d4f9743a9284 (diff)
parentf86d153cef724af9d30e4139783a7e14d7ba0a19 (diff)
downloadyosys-31ff0d8ef529a1ddfa37e4b68017e4e433399da7.tar.gz
yosys-31ff0d8ef529a1ddfa37e4b68017e4e433399da7.tar.bz2
yosys-31ff0d8ef529a1ddfa37e4b68017e4e433399da7.zip
Merge remote-tracking branch 'origin/master' into eddie/synth_xilinx_fine
Diffstat (limited to 'frontends/ast/simplify.cc')
-rw-r--r--frontends/ast/simplify.cc9
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();