add trim-do pass to run-passes
remove dead code