An ab initio constant pressure molecular dynamics technique is carried out to explore the behaviour of rock salt-structured titanium nitride (TiN) under pressure. Two successive phase transformations are successfully observed in the dynamical simulations. The first one is an isostructural phase transition accompanied by an anomalous volume compression without any symmetry breaking. The second one is a reconstructive phase transformation into a CsCl-type structure. For the first time, the previously proposed two-phase transformations for TiN are confirmed through the simulations.