Speed up V3Width by pulling skip condition before node iteration.

This commit is contained in:
Geza Lore 2021-05-02 11:23:09 +01:00
parent 008b8d5b56
commit 76494891cf

View File

@ -6125,6 +6125,7 @@ private:
}
void userIterateAndNext(AstNode* nodep, WidthVP* vup) {
if (!nodep) return;
if (nodep->didWidth()) return; // Avoid iterating list we have already iterated
{
VL_RESTORER(m_vup);
m_vup = vup;