Recent experimental measurements of Ag impurity diffusion in the Σ5 (310) grain boundary (GB) in Cu revealed an unusual non-Arrhenius behavior suggestive of a possible structural transformation [Divinski et al., Phys. Rev. B 85, 144104 (2012)]. On the other hand, atomistic computer simulations have recently discovered phase transformations in high-angle GBs in metals [Frolov et al., Nature Communications, 4, 1899(2013]. In this paper we report on atomistic simulations of Ag diffusion and segregation in two different structural phases of the Cu Σ5 (310) GB which transform to each other with temperature. The obtained excellent agreement with the experimental data validates the hypothesis that the unusual diffusion behavior seen in the experiment was caused by a phase transformation. The simulations also predict that the low-temperature GB phase exhibits a monolayer segregation pattern while the high-temperature phase features a bilayer segregation. Together, the simulations and experiment provide the first convincing evidence for the existence of structural phase transformations in high-angle metallic GBs and demonstrate the possibility of their detection by GB diffusion measurements and atomistic simulations.Motivation. Structural transformations at grain boundaries (GBs) are of fundamental interest and can have a significant impact on microstructure, mechanical behavior and transport properties of polycrystalline materials [1,2]. A number of GB phases have been found in alloys [3] and ceramic materials [4,5], where they often appear in the form of intergranular thin films and are referred to as "complexions" [6]. In metallic alloys, several phases with discrete thickness have been observed, such as the segregated bilayer structure believed to be responsible for the liquid-layer embrittlement effect [7]. However, despite