Internals: Remove repeated clearing of constraints (#5583)

Signed-off-by: Ryszard Rozak <rrozak@antmicro.com>
This commit is contained in:
Ryszard Rozak 2024-11-04 13:48:55 +01:00 committed by GitHub
parent 7854118883
commit b3348a38d0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);