Added final pass for dead code removal, and fixed some bugs identified by it regarding deep instruction retargeting after insert or removal of instructions