remove useless registers from applocal