https://gcc.gnu.org/bugzilla/show_bug.cgi?id=23471
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rguenth at gcc dot gnu.org --- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> --- There is tools in tree-ssa-math-opts.c (powi_as_mults) for this, plus this "re-association" is valid for all TYPE_OVERFLOW kinds.