forked from github/verilator
Internals: if assertion should be VL_UNLIKELY
This commit is contained in:
parent
bac98df46b
commit
cf4c00e3b4
@ -574,6 +574,7 @@ std::pair<AstVarScope*, AstNode*> makeEvalLoop(AstNetlist* netlistp, const strin
|
|||||||
constp->num().setLong(limit);
|
constp->num().setLong(limit);
|
||||||
AstNodeMath* const condp = new AstGt{flp, refp, constp};
|
AstNodeMath* const condp = new AstGt{flp, refp, constp};
|
||||||
AstIf* const failp = new AstIf{flp, condp};
|
AstIf* const failp = new AstIf{flp, condp};
|
||||||
|
failp->branchPred(VBranchPred::BP_UNLIKELY);
|
||||||
ifp->addThensp(failp);
|
ifp->addThensp(failp);
|
||||||
AstTextBlock* const blockp = new AstTextBlock{flp};
|
AstTextBlock* const blockp = new AstTextBlock{flp};
|
||||||
failp->addThensp(blockp);
|
failp->addThensp(blockp);
|
||||||
|
Loading…
Reference in New Issue
Block a user