Skip to content

Commit

Permalink
Remove repeated clearing of constraints
Browse files Browse the repository at this point in the history
Signed-off-by: Ryszard Rozak <[email protected]>
  • Loading branch information
RRozak committed Nov 4, 2024
1 parent 7854118 commit c71f83a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/V3Randomize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1883,7 +1883,6 @@ class RandomizeVisitor final : public VNVisitor {
AstTask* setupAllTaskp = getCreateConstraintSetupFunc(nodep);
AstTaskRef* const setupTaskRefp = new AstTaskRef{fl, setupAllTaskp->name(), nullptr};
setupTaskRefp->taskp(setupAllTaskp);
randomizep->addStmtsp(implementConstraintsClear(fl, genp));
randomizep->addStmtsp(setupTaskRefp->makeStmt());

AstNodeModule* const genModp = VN_AS(genp->user2p(), NodeModule);
Expand Down

0 comments on commit c71f83a

Please sign in to comment.