Discard dead assignments in tryToInline
Inlining global registers and constants made code slightly larger in some cases. I finally got around to looking into why, and discovered one reason: we weren't discarding dead code in some cases. This patch fixes it.
Showing with 26 additions and 4 deletions