https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92408
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Severity|normal |enhancement Status|UNCONFIRMED |NEW Component|middle-end |tree-optimization Last reconfirmed| |2021-08-01 --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Confirmed. The code is located in fold_binary_loc in fold-const.c, moving it to match.pd might need some patching to support adding of loads in the case of -fnon-call-exceptions.