https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106091
Kewen Lin <linkw at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |linkw at gcc dot gnu.org Status|UNCONFIRMED |ASSIGNED Ever confirmed|0 |1 Last reconfirmed| |2022-06-28 --- Comment #2 from Kewen Lin <linkw at gcc dot gnu.org> --- Confirmed, thanks for reporting. It needs explicit option -mcpu=power8 if the default cpu type is some else. It looks pass swaps doesn't copy REG_NOTES when replacing insns.