remove more useless subnodes in native optimizer