mirror of
https://github.com/verilator/verilator.git
synced 2025-01-01 04:07:34 +00:00
Internals: Remove repeated clearing of constraints (#5583)
Signed-off-by: Ryszard Rozak <rrozak@antmicro.com>
This commit is contained in:
parent
7854118883
commit
b3348a38d0
@ -1883,7 +1883,6 @@ class RandomizeVisitor final : public VNVisitor {
|
|||||||
AstTask* setupAllTaskp = getCreateConstraintSetupFunc(nodep);
|
AstTask* setupAllTaskp = getCreateConstraintSetupFunc(nodep);
|
||||||
AstTaskRef* const setupTaskRefp = new AstTaskRef{fl, setupAllTaskp->name(), nullptr};
|
AstTaskRef* const setupTaskRefp = new AstTaskRef{fl, setupAllTaskp->name(), nullptr};
|
||||||
setupTaskRefp->taskp(setupAllTaskp);
|
setupTaskRefp->taskp(setupAllTaskp);
|
||||||
randomizep->addStmtsp(implementConstraintsClear(fl, genp));
|
|
||||||
randomizep->addStmtsp(setupTaskRefp->makeStmt());
|
randomizep->addStmtsp(setupTaskRefp->makeStmt());
|
||||||
|
|
||||||
AstNodeModule* const genModp = VN_AS(genp->user2p(), NodeModule);
|
AstNodeModule* const genModp = VN_AS(genp->user2p(), NodeModule);
|
||||||
|
Loading…
Reference in New Issue
Block a user