[Bug tree-optimization/40770] Vectorization of complex types, vectorization of sincos missing

fw at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Sep 22 09:37:37 GMT 2020


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

Florian Weimer <fw at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fw at gcc dot gnu.org

--- Comment #16 from Florian Weimer <fw at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #15)
> Unfortunately, I think glibc currently defines sincos in math-vector.h the
> unuseful way with just simd ("notinbranch") attribute, which effectively
> means
> that the caller is supposed to pass vectors of pointers (well integers with
> those sizes) and so needs scatter under the hood.
> So the best thing would be to change glibc first.

What exactly do we need to change? Factor out the declaration of sincos, so
that we can apply “linear(__p1, __p2)” to it?

Should glibc provide a cexpi function? The complex result would avoid having to
go through memory at all.


More information about the Gcc-bugs mailing list