Fix conditional slices and add related optimizations.

This commit is contained in:
Wilson Snyder
2017-10-04 21:27:34 -04:00
parent b532a47e4a
commit 75aab4e9d2
13 changed files with 218 additions and 414 deletions
-2
View File
@@ -305,8 +305,6 @@ private:
} else {
// TODO when unpacked arrays fully supported probably need new data type here
AstArraySel* newp = new AstArraySel (nodep->fileline(), fromp, lsbp);
newp->start(lsb);
newp->length((msb - lsb) + 1);
nodep->replaceWith(newp); pushDeletep(nodep); VL_DANGLING(nodep);
}
}