For UNUSED, ignore black boxed sys calls

This commit is contained in:
Wilson Snyder
2010-12-30 07:55:31 -05:00
parent 6283df7491
commit 2cb97f7475
9 changed files with 60 additions and 7 deletions
+8
View File
@@ -1508,6 +1508,14 @@ private:
// If output of a presel didn't get consted, chances are V3Param didn't visit properly
virtual void visit(AstNodePreSel* nodep, AstNUser*) {}
// Ignored, can eliminate early
virtual void visit(AstSysIgnore* nodep, AstNUser*) {
nodep->iterateChildren(*this);
if (m_doNConst) {
nodep->unlinkFrBack()->deleteTree(); nodep=NULL;
}
}
//-----
// Jump elimination