This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Improve -Ofast vectorization of std::sin etc. (PR libstdc++/81706)


On Fri, Sep 1, 2017 at 1:12 PM, Jakub Jelinek <jakub@redhat.com> wrote:
> +                 tree s = lookup_attribute ("omp declare simd",
> +                                            DECL_ATTRIBUTES (newdecl));
> +                 if (s)
> +                   {
> +                     tree b
> +                       = builtin_decl_explicit (DECL_FUNCTION_CODE (newdecl));
> +                     if (b)
> +                       duplicate_one_attribute (&DECL_ATTRIBUTES (b), s,
> +                                                "omp declare simd");
> +                   }

Is there a reason not to set b first and move the lookup of s into the
function as well?

Jason


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]