Removed linear scan in dead code elimination