Split not needed with --xml-only

This commit is contained in:
Wilson Snyder 2020-02-23 19:56:18 -05:00
parent 784e39131b
commit c4c190398f
1 changed files with 4 additions and 6 deletions

View File

@ -175,17 +175,15 @@ static void process() {
// Propagate constants into expressions
V3Const::constifyAllLint(v3Global.rootp());
// Split packed variables into multiple pieces to resolve UNOPTFLAT.
// should be after constifyAllLint() which flattens to 1D bit vector
V3SplitVar::splitVariable(v3Global.rootp());
if (!v3Global.opt.xmlOnly()) {
// Split packed variables into multiple pieces to resolve UNOPTFLAT.
// should be after constifyAllLint() which flattens to 1D bit vector
V3SplitVar::splitVariable(v3Global.rootp());
// Remove cell arrays (must be between V3Width and scoping)
V3Inst::dearrayAll(v3Global.rootp());
V3LinkDot::linkDotArrayed(v3Global.rootp());
}
if (!v3Global.opt.xmlOnly()) {
// Task inlining & pushing BEGINs names to variables/cells
// Begin processing must be after Param, before module inlining
V3Begin::debeginAll(v3Global.rootp()); // Flatten cell names, before inliner