https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63679
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org Target Milestone|--- |5.0 --- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> --- I will have a look. Note that 4.9 simply didn't vectorize this. And note that unfortunately only FRE/PRE have a chance to optimize this but they do not run that late. Jakub wanted to enable FRE late for some other PR. Tejas, can you try Index: passes.def =================================================================== --- passes.def (revision 217035) +++ passes.def (working copy) @@ -255,7 +255,7 @@ NEXT_PASS (pass_reassoc); NEXT_PASS (pass_strength_reduction); NEXT_PASS (pass_tracer); - NEXT_PASS (pass_dominator); + NEXT_PASS (pass_fre); NEXT_PASS (pass_strlen); NEXT_PASS (pass_vrp); /* The only const/copy propagation opportunities left after ?