From cf4c00e3b41fb015f497469cddc3132eccd660c9 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Wed, 2 Nov 2022 20:11:25 -0400 Subject: [PATCH] Internals: if assertion should be VL_UNLIKELY --- src/V3Sched.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/V3Sched.cpp b/src/V3Sched.cpp index 36a23771f..50f8f12ea 100644 --- a/src/V3Sched.cpp +++ b/src/V3Sched.cpp @@ -574,6 +574,7 @@ std::pair makeEvalLoop(AstNetlist* netlistp, const strin constp->num().setLong(limit); AstNodeMath* const condp = new AstGt{flp, refp, constp}; AstIf* const failp = new AstIf{flp, condp}; + failp->branchPred(VBranchPred::BP_UNLIKELY); ifp->addThensp(failp); AstTextBlock* const blockp = new AstTextBlock{flp}; failp->addThensp(blockp);