This paper investigates the electronic structure of self-assembled InAs quantum wires (QWrs), grown under different conditions by molecular beam epitaxy on InP, by means of photoluminescence measurements under pressure. In samples with regularly distributed QWrs, room pressure photoluminescence spectra consist of a broad band centred at about 0.85 eV, which can be easily de-convoluted in a few Gaussian peaks. In samples with isolated QWrs, photoluminescence spectra exhibit up to four clearly resolved bands. Applying hydrostatic pressure, the whole emission band monotonously shifts towards higher photon energies with pressure coefficients ranging from 72 to 98 meV/GPa. In contrast to InAs quantum dots on GaAs, quantum wires photoluminescence is observed up to 10 GPa, indicating that InAs QWrs are metastable well above pressure at which bulk InAs undergoes a phase transition to the rock-salt phase (7 GPa).