gimplify.c (gimplify_call_expr): Don't call omp_resolve_declare_variant after gimplif...
authorJakub Jelinek <jakub@redhat.com>
Fri, 15 Nov 2019 08:32:36 +0000 (09:32 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 15 Nov 2019 08:32:36 +0000 (09:32 +0100)
commit0227ffa98e122d5716d508c435cb8323cd93bfef
tree1061bae3610fd33b8be8ea3ae45c260c201f3812
parent1c9676e2076b403eb1f6b22351bf0c58cc367ee3
gimplify.c (gimplify_call_expr): Don't call omp_resolve_declare_variant after gimplification.

* gimplify.c (gimplify_call_expr): Don't call
omp_resolve_declare_variant after gimplification.
* omp-general.c (omp_context_selector_matches): For isa that might
match in some other function, defer if in declare simd function.
(omp_context_compute_score): Don't look for " score" in construct
trait set.  Set *score to -1 if it can't ever match.
(omp_resolve_declare_variant): If any variants need to be deferred,
don't punt immediately, but compute scores of all variants and if
ther eis a score winner that doesn't need to be deferred, return that.

* c-c++-common/gomp/declare-variant-13.c: New test.

From-SVN: r278280
gcc/ChangeLog
gcc/gimplify.c
gcc/omp-general.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/gomp/declare-variant-13.c [new file with mode: 0644]