mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-27 02:45:52 +00:00
Do not propagate mem2reg attribute through to result
This commit is contained in:
parent
c50d68653d
commit
fe1b2337fd
2 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue