Move dead code elim steps to just be in DeadCodeElimination.
Map unused registers to the invalid register.
Use macros in some critical sections to help with performance.