https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115648
--- Comment #1 from HaoChen Gui <guihaoc at gcc dot gnu.org> --- The patch replaced rtx cost comparison with insn cost comparison. Some replacements can be done before but can't now. Or vice versa. Please check the fwprop dump log via -fdump-rtl-fwprop1-details and judge if the replacements are benefits or not.