findRegister for compiler