[PATCH 6/8] Make expr_range_in_bb stmt based rather than block based.

2021-05-25 Thread Andrew MacLeod via Gcc-patches
First step in moving gori_compute to range_query is to standardize its queries to be stmt based rather than block based. gori_compute works from the bottom of the block back towards the top, so it always has a stmt available for a range_of_expr query, there is no need to use a non-standard entr

[PATCH 8/8] Remove the logical stmt cache for now.

2021-05-25 Thread Andrew MacLeod via Gcc-patches
We added the logical stmt depth limit back in January I think, and the logical stmt cache is not currently in use.   This patch removes that code so it doesn't have too be maintained thru these changes. Bootstraps on x86_64-pc-linux-gnu with no regressions.  Pushed. Andrew >From a6e94287d3152

[PATCH 7/8] Adjust fur_source internal api to use gori_compute not, ranger_cache.

2021-05-25 Thread Andrew MacLeod via Gcc-patches
I introduced fur_source  a week ago or so to act as the source for operands of fold_stmt.. ie, it encapsulated a range_query source to get operands for the arguments of a stmt when fold_stmt was invoked. One of the API points was an internal ranger version which contains a reference to a range

Re: [PATCH] libgccjit: Handle truncation and extension for casts [PR 95498]

2021-05-25 Thread Antoni Boucher via Gcc-patches
I updated the patch according to the comments by Tom Tromey. There's one question left about your question regarding C_MAYBE_CONST_EXPR, David: I am not sure if we can get a C_MAYBE_CONST_EXPR from libgccjit, and it indeed seems like it's only created in c-family. However, we do use it in libgccj

Re: [PATCH] libgccjit: add some reflection functions in the jit C api

2021-05-25 Thread Antoni Boucher via Gcc-patches
@David: PING As far as I know, the only remaining question is about using `ssize_t` for the return type of some functions. Here's why I use this type: That seemed off to return NULL for the functions returning a size_t to indicate an error. So I changed it to return -1 (and return type to ssize_

[r12-1045 Regression] FAIL: libgomp.c++/task-reduction-8.C execution test on Linux/x86_64

2021-05-25 Thread sunil.k.pandey via Gcc-patches
On Linux/x86_64, 41ddc5b0a6b44a9df53a259636fa3b534ae41cbe is the first bad commit commit 41ddc5b0a6b44a9df53a259636fa3b534ae41cbe Author: Aldy Hernandez Date: Tue May 25 08:36:44 2021 +0200 Fix selftest for targets where short and int are the same size. caused FAIL: libgomp.c++/task-redu

Re: [PATCH][i386] Split not+broadcast+pand to broadcast+pandn.

2021-05-25 Thread Hongtao Liu via Gcc-patches
Update patch: The new patch simplify (vec_duplicate (not (nonimmedaite_operand))) to (not (vec_duplicate (nonimmedaite_operand))). This is not a straightforward simplification, just adding some tendency to pull not out of vec_duplicate. For i386, it will enable below opt from notl

Re: [PATCH] C-SKY: Add insn "ldbs".

2021-05-25 Thread Cooper Qu via Gcc-patches
merged. On 5/25/21 6:45 PM, Geng Qi wrote: gcc/ * config/csky/csky.md (cskyv2_sextend_ldbs): New insn. gcc/testsuite/ * gcc/testsuite/gcc.target/csky/ldbs.c: New. --- gcc/config/csky/csky.md | 10 ++ gcc/testsuite/gcc.target/csky/ldbs.c | 11 +++

Re: [PATCH] C-SKY: Support for fpuv2:fldrd/fstrd and fpuv3:fldr.64/fstr.64.

2021-05-25 Thread Cooper Qu via Gcc-patches
Is any test case for these instructions? On 4/30/21 9:04 PM, Geng Qi wrote: gcc/ChangeLog: * config/csky/csky.c (ck810_legitimate_index_p): Modified for support "base + index" with DF mode. * config/csky/constraints.md ("Y"): New constraint for memory operands wi

[PATCH v2] rs6000: Add load density heuristic

2021-05-25 Thread Kewen.Lin via Gcc-patches
Hi, This is the updated version of patch to deal with the bwaves_r degradation due to vector construction fed by strided loads. As Richi's comments [1], this follows the similar idea to over price the vector construction fed by VMAT_ELEMENTWISE or VMAT_STRIDED_SLP. Instead of adding the extra co

PING^1 [PATCH] rs6000: Support more short/char to float conversion

2021-05-25 Thread Kewen.Lin via Gcc-patches
Hi, Gentle ping this: https://gcc.gnu.org/pipermail/gcc-patches/2021-May/569792.html BR, Kewen on 2021/5/7 上午10:30, Kewen.Lin via Gcc-patches wrote: > Hi, > > For some cases that when we load unsigned char/short values from > the appropriate unsigned char/short memories and convert them to

[r12-1053 Regression] FAIL: libgomp.c++/task-reduction-8.C execution test on Linux/x86_64

2021-05-25 Thread sunil.k.pandey via Gcc-patches
On Linux/x86_64, a6e94287d31525b3ad0963ad22a92e9f3dbcd3cf is the first bad commit commit a6e94287d31525b3ad0963ad22a92e9f3dbcd3cf Author: Andrew MacLeod Date: Tue May 25 14:59:54 2021 -0400 Remove the logical stmt cache for now. caused FAIL: libgomp.c++/task-reduction-8.C execution test

PING^2 [PATCH/RFC] combine: Tweak the condition of last_set invalidation

2021-05-25 Thread Kewen.Lin via Gcc-patches
Hi, Gentle ping this: https://gcc.gnu.org/pipermail/gcc-patches/2020-December/562015.html BR, Kewen on 2021/5/7 上午10:45, Kewen.Lin via Gcc-patches wrote: > Hi Segher, > >>> >>> I think this should be postponed to stage 1 though? Or is there >>> anything very urgent in it? >>> >> >> Yeah, I ag

Re: [PATCH v2] forwprop: Support vec perm fed by CTOR and CTOR/CST [PR99398]

2021-05-25 Thread Kewen.Lin via Gcc-patches
>> The attached patch v2 use the structure by considering the above >> advice and the (code == CONSTRUCTOR || code == VECTOR_CST) part >> can be shared with VIEW_CONVERT_EXPR handlings as below: >> >> op0 gathering (leave V_C_E in code if it's met) >> >> else if (code == CONSTRUCTOR || code =

[PATCH] C-SKY: Support fpuv2:fldrd/fstrd and fpuv3:fldr.64/fstr.64.

2021-05-25 Thread Geng Qi via Gcc-patches
gcc/ChangeLog: * config/csky/csky.c (ck810_legitimate_index_p): Modified for support "base + index" with DF mode. * config/csky/constraints.md ("Y"): New constraint for memory operands without index register. * config/csky/csky_insn_fpuv2.md (fpuv3_m

Re: [PATCH][i386] Split not+broadcast+pand to broadcast+pandn.

2021-05-25 Thread Andrew Pinski via Gcc-patches
On Tue, May 25, 2021 at 6:17 PM Hongtao Liu wrote: > > Update patch: > The new patch simplify (vec_duplicate (not (nonimmedaite_operand))) > to (not (vec_duplicate (nonimmedaite_operand))). This is not a > straightforward simplification, just adding some tendency to pull not > out of vec_duplica

Re: [PATCH] Extend is_cond_scalar_reduction to handle nop_expr after/before scalar reduction.[PR98365]

2021-05-25 Thread Hongtao Liu via Gcc-patches
On Tue, May 25, 2021 at 6:24 PM Richard Biener wrote: > > On Mon, May 24, 2021 at 11:52 AM Hongtao Liu wrote: > > > > Hi: > > Details described in PR. > > Bootstrapped and regtest on > > x86_64-linux-gnu{-m32,}/x86_64-linux-gnu{-m32\ > > -march=cascadelake,-march=cascadelake} > > Ok for tru

Re: [PATCH][i386] Split not+broadcast+pand to broadcast+pandn.

2021-05-25 Thread Hongtao Liu via Gcc-patches
On Wed, May 26, 2021 at 12:12 PM Andrew Pinski wrote: > > On Tue, May 25, 2021 at 6:17 PM Hongtao Liu wrote: > > > > Update patch: > > The new patch simplify (vec_duplicate (not (nonimmedaite_operand))) > > to (not (vec_duplicate (nonimmedaite_operand))). This is not a > > straightforward simpl

Re: [r12-1045 Regression] FAIL: libgomp.c++/task-reduction-8.C execution test on Linux/x86_64

2021-05-25 Thread Aldy Hernandez via Gcc-patches
On 5/26/21 2:21 AM, sunil.k.pandey wrote: On Linux/x86_64, 41ddc5b0a6b44a9df53a259636fa3b534ae41cbe is the first bad commit commit 41ddc5b0a6b44a9df53a259636fa3b534ae41cbe Author: Aldy Hernandez Date: Tue May 25 08:36:44 2021 +0200 Fix selftest for targets where short and int are the

Re: [PATCH] C-SKY: Support fpuv2:fldrd/fstrd and fpuv3:fldr.64/fstr.64.

2021-05-25 Thread Cooper Qu via Gcc-patches
Pushed On 5/26/21 11:29 AM, Geng Qi wrote: gcc/ChangeLog: * config/csky/csky.c (ck810_legitimate_index_p): Modified for support "base + index" with DF mode. * config/csky/constraints.md ("Y"): New constraint for memory operands without index register. * c

Re: [PATCH] C-SKY: Fix for gcc.dg/torture/stackalign/builtin-return-2.c.

2021-05-25 Thread Cooper Qu via Gcc-patches
Pushed. On 4/30/21 9:02 PM, Geng Qi wrote: gcc/ChangeLog: * config/csky/csky.md (untyped_call): Emit clobber for return registers to mark them used. --- gcc/config/csky/csky.md | 4 1 file changed, 4 insertions(+) diff --git a/gcc/config/csky/csky.md b/gcc/config/csky/c

Re: [PATCH] C-SKY: Use default for TARGET_PROMOTE_PROTOTYPES.

2021-05-25 Thread Cooper Qu via Gcc-patches
Pushed. On 4/30/21 9:03 PM, Geng Qi wrote: gcc/ChangeLog: * config/csky/csky.c (TARGET_PROMOTE_PROTOTYPES): Use default. --- gcc/config/csky/csky.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/gcc/config/csky/csky.c b/gcc/config/csky/csky.c index 67cdf9c..e4c92fe 100644 ---

<    1   2