[Bug tree-optimization/102494] Failure to optimize vector reduction properly especially when using OpenMP

crazylht at gmail dot com gcc-bugzilla@gcc.gnu.org
Mon Sep 27 05:55:16 GMT 2021


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102494

--- Comment #5 from Hongtao.liu <crazylht at gmail dot com> ---
(In reply to Hongtao.liu from comment #4)
> > 
> > But for the case in PR, it's v8qi -> 2 v4hi, and no vector reduction for
> > v4hi.
> 
> We need add (define_expand "reduc_plus_scal_v4hi" just like (define_expand
> "reduc_plus_scal_v8qi" in mmx.md.

Also for reduc_{umax,umin,smax,smin}_scal_v4hi


More information about the Gcc-bugs mailing list