[committed] openmp: Improve #pragma omp simd vectorization

2020-09-26 Thread Jakub Jelinek via Gcc-patches
Hi! As mentioned earlier, the vectorizer punts on vectorization of loops with non-constant steps. As for OpenMP loops it is by the language restriction always possible to compute the number of loop iterations before the loop, this change helps those cases by computing it and using an alternate

Implement iterative dataflow in modref to track parameters

2020-09-26 Thread Jan Hubicka
Hi, this patchs finishes the parameter tracking by implementing the iterative dataflow in propagation stage. This is necessary since we now can propagate how the pointers are passed around recursive calls (as done in a testcase) and thus it is no-longer safe to simply merge all summaries in one SCC

Re: Implement iterative dataflow in modref to track parameters

2020-09-26 Thread Richard Biener
On September 26, 2020 10:20:20 AM GMT+02:00, Jan Hubicka wrote: >Hi, >this patchs finishes the parameter tracking by implementing the >iterative >dataflow in propagation stage. This is necessary since we now can >propagate how the pointers are passed around recursive calls (as done >in >a testcase

Re: Fix handling of gimple_clobber in ipa_modref

2020-09-26 Thread Jan Hubicka
> On September 26, 2020 12:04:24 AM GMT+02:00, Jan Hubicka > wrote: > >Hi, > >while adding check for gimple_clobber I reversed the return value > >so instead of ignoring the statement ipa-modref gives up. Fixed thus. > >This explains the drop between originally reported disambinguations > >stats

Re: [PATCH] optabs: Don't reuse target for multi-word expansions if it overlaps operand(s) [PR97073]

2020-09-26 Thread Eric Botcazou
> Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk and > release branches? > > 2020-09-18 Jakub Jelinek > > PR middle-end/97073 > * optabs.c (expand_binop, expand_absneg_bit, expand_unop, > expand_copysign_bit): Check reg_overlap_mentioned_p between target

Re: dg-options after board/cflags

2020-09-26 Thread Maciej W. Rozycki
On Wed, 2 Sep 2020, Jose E. Marchesi via Gcc-patches wrote: > Your patch dealt with board/multilib_flags, but the same problem exists > for board/cflags and many other flag-containing options. What's the use case for that? IIUC board flags are supposed to be ones that are absolutely required f

[PATCH] AIX: collect2 visibility

2020-09-26 Thread David Edelsohn via Gcc-patches
The code that collect2 generates, compiles and links into applications and shared libraries to initialize constructors and register DWARF tables is built with the compiler options used to invoke the linker. If the compiler options change the visibility from default, the library initialization rout

[Patch][nvptx] return true in libc_has_function for function_sincos

2020-09-26 Thread Tobias Burnus
Found when looking at PR97203 (but having no effect there). The GCC ME optimizes with -O1 (or higher) the a = sinf(x) b = cosf(x) to __builtin_cexpi(x, &a, &b) (...i as in internal; like cexp(z) but with with __real__ z == 0) In expand_builtin_cexpi, that is handles as: if (optab_handler

[committed] libstdc++: Use __libc_single_threaded to optimise atomics [PR 96817]

2020-09-26 Thread Jonathan Wakely via Gcc-patches
Glibc 2.32 adds a global variable that says whether the process is single-threaded. We can use this to decide whether to elide atomic operations, as a more precise and reliable indicator than __gthread_active_p. This means that guard variables for statics and reference counting in shared_ptr can u

Re: Fix handling of gimple_clobber in ipa_modref

2020-09-26 Thread Jan Hubicka
> On September 26, 2020 12:04:24 AM GMT+02:00, Jan Hubicka > wrote: > >Hi, > >while adding check for gimple_clobber I reversed the return value > >so instead of ignoring the statement ipa-modref gives up. Fixed thus. > >This explains the drop between originally reported disambinguations > >stats

Re: [PATCH v7] genemit.c (main): split insn-emit.c for compiling parallelly

2020-09-26 Thread Jojo R
Hi, Has this patch been merged ? Jojo 在 2020年9月15日 +0800 PM5:16,Jojo R ,写道: > gcc/ChangeLog: > > * genemit.c (main): Print 'split line'. > * Makefile.in (insn-emit.c): Define split count and file > > --- > gcc/Makefile.in | 19 + > gcc/genemit.c | 104 +-

Re: [PATCH v4 1/3] IFN: Implement IFN_VEC_SET for ARRAY_REF with VIEW_CONVERT_EXPR

2020-09-26 Thread xionghu luo via Gcc-patches
On 2020/9/25 21:28, Richard Sandiford wrote: > xionghu luo writes: >> @@ -2658,6 +2659,45 @@ expand_vect_cond_mask_optab_fn (internal_fn, gcall >> *stmt, convert_optab optab) >> >> #define expand_vec_cond_mask_optab_fn expand_vect_cond_mask_optab_fn >> >> +/* Expand VEC_SET internal fu