We present an experimental and theoretical lattice-dynamical study of InN at high hydrostatic pressures. We perform Raman scattering measurements on five InN epilayers, with different residual strain and free electron concentrations. The experimental results are analyzed in terms of ab initio lattice-dynamical calculations on both wurtzite InN (w-InN) and rocksalt InN (rs-InN) as a function of pressure. Experimental and theoretical pressure coefficients of the optical modes in w-InN are compared, and the role of residual strain on the measured pressure coefficients is analyzed. In the case of the LO band, we analyze and discuss its pressure behavior considering the double-resonance mechanism responsible for the selective excitation of LO phonons with large wave vectors in w-InN. The pressure behavior of the L − coupled mode observed in a heavily doped n-type sample allows us to estimate the pressure dependence of the electron effective mass in w-InN. The results thus obtained are in good agreement with k · p theory. The wurtzite-to-rocksalt phase transition on the upstroke cycle and the rocksalt-to-wurtzite backtransition on the downstroke cycle are investigated, and the Raman spectra of both phases are interpreted in terms of DFT lattice-dynamical calculations.