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);
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user