Phase diagram of the magnetic heavy-fermion superconductor UPd2Al3