Re: [PATCH] vect: Add extraction cost for slp reduc

2021-08-15 Thread Richard Biener via Gcc-patches
On Mon, Aug 16, 2021 at 8:03 AM Kewen.Lin wrote: > > Hi, > > IIUC, the function vectorizable_bb_reduc_epilogue missed to > consider the cost to extract the final value from the vector > for reduc operations. This patch is to add one time of > vec_to_scalar cost for extracting. > > Bootstrapped &

Re: [PATCH 2/2] Fix 101805: Simplify min/max of boolean arguments

2021-08-15 Thread Richard Biener via Gcc-patches
On Sat, Aug 14, 2021 at 2:21 AM apinski--- via Gcc-patches wrote: > > From: Andrew Pinski > > I noticed this while Richard B. fixing PR101756. > Basically min of two bools is the same as doing an "and" > and max of two bools is doing an "ior". But that's only true for unsigned vals. For signed

Re: [PATCH 1/2] Add gimple_truth_valued_p to match.pd and use it

2021-08-15 Thread Richard Biener via Gcc-patches
On Sat, Aug 14, 2021 at 2:20 AM apinski--- via Gcc-patches wrote: > > From: Andrew Pinski > > While working on some more boolean optimizations, I noticed > that there are places which does SSA_NAME@0 and then look > at then either use get_nonzero_bits or ssa_name_has_boolean_range > to see if the

Re: [PATCH] ipa: "naked" attribute implies "noipa" attribute

2021-08-15 Thread Richard Biener via Gcc-patches
On Mon, Aug 16, 2021 at 8:15 AM Richard Biener wrote: > > On Fri, Aug 13, 2021 at 11:14 AM Martin Liška wrote: > > > > Hi. > > > > This is a first part fixing the PR. It makes sense making "naked" functions > > "noipa". > > What's missing is IPA MOD pass support where the pass should not optimiz

Re: [PATCH] ipa: "naked" attribute implies "noipa" attribute

2021-08-15 Thread Richard Biener via Gcc-patches
On Fri, Aug 13, 2021 at 11:14 AM Martin Liška wrote: > > Hi. > > This is a first part fixing the PR. It makes sense making "naked" functions > "noipa". > What's missing is IPA MOD pass support where the pass should not optimize fns > with "noipa" attributes. > > @Honza: Can you please implement t

Re: [GCC-11] [PATCH 0/5] Finish and general-regs-only

2021-08-15 Thread Richard Biener via Gcc-patches
On Fri, Aug 13, 2021 at 3:51 PM H.J. Lu wrote: > > and target("general-regs-only") function attribute > were added to GCC 11. But their implementations are incomplete. I'd > like to backport the following patches to GCC 11 branch to finish them. Fine with me if x86 maintainers do not disagree

Re: [PATCH 1/5] x86: Add -mmwait for -mgeneral-regs-only

2021-08-15 Thread Richard Biener via Gcc-patches
On Fri, Aug 13, 2021 at 3:51 PM H.J. Lu wrote: > > Add -mmwait so that the MWAIT and MONITOR intrinsics can be used with > -mgeneral-regs-only and make -msse3 to imply -mmwait. Adding new options requires to bump the LTO streaming minor version (I know we forgot it once on the branch already when

[PATCH] vect: Add extraction cost for slp reduc

2021-08-15 Thread Kewen.Lin via Gcc-patches
Hi, IIUC, the function vectorizable_bb_reduc_epilogue missed to consider the cost to extract the final value from the vector for reduc operations. This patch is to add one time of vec_to_scalar cost for extracting. Bootstrapped & regtested on powerpc64le-linux-gnu P9. The testing on x86_64 and a

[PATCH] [i386] Optimize __builtin_shuffle_vector.

2021-08-15 Thread liuhongt via Gcc-patches
Hi: Here's updated patch which does 3 things: 1. Support vpermw/vpermb in ix86_expand_vec_one_operand_perm_avx512. 2. Support 256/128-bits vpermi2b in ix86_expand_vec_perm_vpermt2. 3. Add define_insn_and_split to optimize specific vector permutation to opmov{dw,wb,qd}. Bootstrapped and regtes

Re: [PATCH] Fix ICE when mixing VLAs and statement expressions [PR91038]

2021-08-15 Thread Uecker, Martin
Am Montag, den 16.08.2021, 00:30 -0400 schrieb Jason Merrill: > On 8/1/21 1:36 PM, Uecker, Martin wrote: > > > > Here is an attempt to fix some old and annoying bugs related > > to VLAs and statement expressions. In particulary, this seems > > to fix the issues with variably-modified types which a

Re: [PATCH] RISC-V: Allow multi-lib build with different code model

2021-08-15 Thread Kito Cheng
Committed to trunk. On Wed, Jul 21, 2021 at 4:45 PM Kito Cheng wrote: > > --with-multilib-generator was only support for different ISA/ABI > combination, however code model is effect the code gen a lots it > should able to handled in multilib mechanism. > > Adding `--cmodel=` option to `--with-mu

Re: [PATCH] Fix ICE when mixing VLAs and statement expressions [PR91038]

2021-08-15 Thread Jason Merrill via Gcc-patches
On 8/1/21 1:36 PM, Uecker, Martin wrote: Here is an attempt to fix some old and annoying bugs related to VLAs and statement expressions. In particulary, this seems to fix the issues with variably-modified types which are returned from statement expressions (which works on clang), but there are

Re: Ping: [PATCH v2] Analyze niter for until-wrap condition [PR101145]

2021-08-15 Thread Bin.Cheng via Gcc-patches
On Wed, Aug 4, 2021 at 10:42 AM guojiufu wrote: > > Hi, > > I would like to have a ping on this. > > https://gcc.gnu.org/pipermail/gcc-patches/2021-July/574596.html Sorry for being late in replying. > > BR, > Jiufu > > On 2021-07-15 08:17, guojiufu via Gcc-patches wrote: > > Hi, > > > > I would l

Re: [PATCH 1/2] analyzer: detect and analyze calls via function pointer (GSoC)

2021-08-15 Thread David Malcolm via Gcc-patches
On Sun, 2021-08-15 at 20:28 +0530, Ankur Saini wrote: > The patch extends the analyser’s functionality to understand and > analyze indirect calls (calls via a function pointer or calls to > virtual functions ) > > On successful merging, the patch should also fix the following bugs :- > > 1. htt

[PATCH 1/2] analyzer: detect and analyze calls via function pointer (GSoC)

2021-08-15 Thread Ankur Saini via Gcc-patches
The patch extends the analyser’s functionality to understand and analyze indirect calls (calls via a function pointer or calls to virtual functions ) On successful merging, the patch should also fix the following bugs :- 1. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100546 2. https://gcc.gnu