Misc internal coverage improvements.

This commit is contained in:
Wilson Snyder
2020-05-16 18:02:54 -04:00
parent 201f0d3f5f
commit 17e7da77f0
22 changed files with 259 additions and 38 deletions
+2 -8
View File
@@ -130,10 +130,7 @@ class SliceVisitor : public AstNVisitor {
if (!nodep->user1() && !VN_IS(nodep, AssignAlias)) {
nodep->user1(true);
m_assignError = false;
if (debug() >= 9) {
cout << endl;
nodep->dumpTree(cout, " Deslice-In: ");
}
if (debug() >= 9) nodep->dumpTree(cout, " Deslice-In: ");
AstNodeDType* dtp = nodep->lhsp()->dtypep()->skipRefp();
if (AstUnpackArrayDType* arrayp = VN_CAST(dtp, UnpackArrayDType)) {
// Left and right could have different msb/lsbs/endianness, but #elements is common
@@ -148,10 +145,7 @@ class SliceVisitor : public AstNVisitor {
if (debug() >= 9) { newp->dumpTree(cout, "-new "); }
newlistp = AstNode::addNextNull(newlistp, newp);
}
if (debug() >= 9) {
cout << endl;
nodep->dumpTree(cout, " Deslice-Dn: ");
}
if (debug() >= 9) nodep->dumpTree(cout, " Deslice-Dn: ");
nodep->replaceWith(newlistp);
VL_DO_DANGLING(nodep->deleteTree(), nodep);
// Normal edit iterator will now iterate on all of the expansion assignments