aboutsummaryrefslogtreecommitdiffstats
path: root/frontends
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2019-08-23 11:32:44 -0700
committerEddie Hung <eddie@fpgeh.com>2019-08-23 11:32:44 -0700
commit78b7d8f531cfec661931c08547d90b3f08ae65b3 (patch)
treec5d79308fabd04ff69b589a0753e4b56ac07408e /frontends
parent2b37a093e95036b267481b2dae2046278eef4040 (diff)
parent509c353fe981c95ca667a637bf2b47477962a60b (diff)
downloadyosys-78b7d8f531cfec661931c08547d90b3f08ae65b3.tar.gz
yosys-78b7d8f531cfec661931c08547d90b3f08ae65b3.tar.bz2
yosys-78b7d8f531cfec661931c08547d90b3f08ae65b3.zip
Merge remote-tracking branch 'origin/master' into eddie/xilinx_srl
Diffstat (limited to 'frontends')
-rw-r--r--frontends/ast/simplify.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/frontends/ast/simplify.cc b/frontends/ast/simplify.cc
index 8493aa513..86dd80c65 100644
--- a/frontends/ast/simplify.cc
+++ b/frontends/ast/simplify.cc
@@ -151,7 +151,8 @@ bool AstNode::simplify(bool const_fold, bool at_zero, bool in_lvalue, int stage,
reg->is_reg = true;
reg->is_signed = node->is_signed;
for (auto &it : node->attributes)
- reg->attributes.emplace(it.first, it.second->clone());
+ if (it.first != ID(mem2reg))
+ reg->attributes.emplace(it.first, it.second->clone());
reg->filename = node->filename;
reg->linenum = node->linenum;
children.push_back(reg);