F0FC • In-situ thermal cycling neutron diffraction experiments. F0FC • The effect of thermal history during additive manufacturing was revealed. F0FC • During cycling, phase transformation changed from fully-reversible to irreversible. F0FC • Inhomogeneous residual stresses were developed. F0FC • Martensite showed higher compressive residual stress and lower dislocation density.