There is a Midrash (Shocher Tov 146 I think) referenced by Ri ibn Shu'aib (14th cent.) in his drashos to Torah (Matos-Masei) that pig will become permitted in the future. the Or Hachaim to Leviticus (11:7) explains that pig will change biologically acquiring the sign of a kosher animal (chewing cud in a addition to split hooves).
While some commentators understand the laws of kashrus as spiritually purifying (e.g. Abarbanel (commentary to Shmini cited and translated here), some commentators indeed presume that kashrus laws relate to health (such as those Abarbanel quotes there). They would either dismiss this Midrash (see herehere), posit that the biological changes would similarly make it safe to consume (assuming like Or Hachaim that its physical makeup, rather than halachic status will change), or conjecture that although it would remain unhealthy it would be permitted for whatever reason (after all, not every unhealthy food or behavior is forbidden).
Although generally the Torah's laws are immutable as codified by Rambam Hil. Yesodei Hatorah (9:1), this Midrash probably refers to the Messanic era in which even Rambam conceded changes may take place (see Hil. Megillah 2:18). Furthermore, if understood like Or Hachaim that it will change physically perhaps even Rambam would agree that with the sign of kashrus it would be kosher.
Current social changes however certainly wouldn't obviate or negate mitzvos as per the normal rules of mitzvos cited from Rambam.