https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84114
--- Comment #4 from Steve Ellcey <sje at gcc dot gnu.org> --- While teaching the reassociation pass about fma's seems like the right answer would it be reasonable (and simpler) to do the fma pass (pass_optimize_widening_mul) before the reassociation pass (pass_reassoc) to get the most fma's? That fixes my small test case but I haven't done a bigger performance check to see what the overall impact would be.