mirror of
https://github.com/verilator/verilator.git
synced 2025-01-31 18:54:03 +00:00
Disable Subst when not pure
This commit is contained in:
parent
2f2f0164ff
commit
cdd8953085
@ -2053,7 +2053,7 @@ private:
|
|||||||
VL_DO_DANGLING(nodep->unlinkFrBack()->deleteTree(), nodep);
|
VL_DO_DANGLING(nodep->unlinkFrBack()->deleteTree(), nodep);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
} else if (m_doV && VN_IS(nodep->lhsp(), Concat)) {
|
} else if (m_doV && VN_IS(nodep->lhsp(), Concat) && nodep->isTreePureRecurse()) {
|
||||||
bool need_temp = false;
|
bool need_temp = false;
|
||||||
if (m_warn && !VN_IS(nodep, AssignDly)) { // Is same var on LHS and RHS?
|
if (m_warn && !VN_IS(nodep, AssignDly)) { // Is same var on LHS and RHS?
|
||||||
// Note only do this (need user4) when m_warn, which is
|
// Note only do this (need user4) when m_warn, which is
|
||||||
|
@ -198,7 +198,10 @@ private:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
void visit(AstConst*) override {} // Accelerate
|
void visit(AstConst*) override {} // Accelerate
|
||||||
void visit(AstNode* nodep) override { iterateChildren(nodep); }
|
void visit(AstNode* nodep) override {
|
||||||
|
if (!nodep->isPure()) m_ok = false;
|
||||||
|
iterateChildren(nodep);
|
||||||
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// CONSTRUCTORS
|
// CONSTRUCTORS
|
||||||
|
Loading…
Reference in New Issue
Block a user