Internals: if assertion should be VL_UNLIKELY

This commit is contained in:
Wilson Snyder 2022-11-02 20:11:25 -04:00
parent bac98df46b
commit cf4c00e3b4

View File

@ -574,6 +574,7 @@ std::pair<AstVarScope*, AstNode*> 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);