Add dead-code warning pass
Remove dead codes