[r12-4931 Regression] FAIL: libgomp.fortran/examples-4/simd-6.f90 -Os (test for excess errors) on Linux/x86_64

2021-11-05 Thread sunil.k.pandey via Gcc-patches
(test for excess errors) with GCC configured with ../../gcc/configure --prefix=/local/skpandey/gccwork/toolwork/gcc-bisect-master/master/r12-4931/usr --enable-clocale=gnu --with-system-zlib --with-demangler-in-ld --with-fpmath=sse --enable-languages=c,c++,fortran --enable-cet --without-isl

[PATCH] Fix PR target/103100 -mstrict-align and memset on not aligned buffers

2021-11-05 Thread apinski--- via Gcc-patches
From: Andrew Pinski The problem here is with -mstrict-align, aarch64_expand_setmem needs to check the alginment of the mode to make sure we can use it for doing the stores. gcc/ChangeLog: PR target/103100 * config/aarch64/aarch64.c (aarch64_expand_setmem): Add check for

[PATCH] aarch64: [PR101529] Fix vector shuffle insertion expansion

2021-11-06 Thread apinski--- via Gcc-patches
regressions. PR target/101529 gcc/ChangeLog: * config/aarch64/aarch64.c (aarch64_evpc_ins): Don't use target as an input instead create a new reg. gcc/testsuite/ChangeLog: * c-c++-common/torture/builtin-convertvector-2.c: New test. * c-c++-common/torture/bu

[r12-4976 Regression] FAIL: gfortran.dg/vector_subscript_1.f90 -O3 -g execution test on Linux/x86_64

2021-11-07 Thread sunil.k.pandey via Gcc-patches
execution test with GCC configured with ../../gcc/configure --prefix=/local/skpandey/gccwork/toolwork/gcc-bisect-master/master/r12-4976/usr --enable-clocale=gnu --with-system-zlib --with-demangler-in-ld --with-fpmath=sse --enable-languages=c,c++,fortran --enable-cet --without-isl --enable-libmpx

[PATCH] [pass_if_conversion] Extend is_cond_scalar_reduction to handle bit_and/bit_xor/bit_ior.

2021-11-08 Thread liuhongt via Gcc-patches
"reduction used in loop.\n"); return NULL; } Bootstrap and regtest on x86_64-pc-linux-gnu{-m32,} Ok for trunk? gcc/ChangeLog: PR tree-optimization/103126 * tree-if-conv.c (is_cond_scalar_reduction): Handle BIT_XOR_EXPR/BIT_IOR_EXPR/BI

[PATCH] Fix aarch64 PR 99657: ICE with SVE types used without an error

2021-11-09 Thread apinski--- via Gcc-patches
both auto storage decls and for indirection context. A few testcases needed to be updated for the new error message; they were already being rejected before hand. OK? Bootstrapped and tested on aarch64-linux-gnu with no regressions. PR target/99657 gcc/c/ChangeLog: * c-decl.c

[PATCH] [Committed] Fix tree-optimization/103152: Still one more -signed1bit issue

2021-11-09 Thread apinski--- via Gcc-patches
-optimization/10352 gcc/ChangeLog: * match.pd: Remove check of TYPE_PRECISION for the a?0:pow2 case. gcc/testsuite/ChangeLog: * gcc.c-torture/execute/pr10352-1.c: New test. --- gcc/match.pd| 3 +-- gcc/testsuite/gcc.c-torture/execute

[PATCH] aarch64: [PR101529] Fix vector shuffle insertion expansion

2021-11-09 Thread apinski--- via Gcc-patches
-gnu with no regressions. PR target/101529 gcc/ChangeLog: * config/aarch64/aarch64.c (aarch64_evpc_ins): Don't use target as an input, use original one. gcc/testsuite/ChangeLog: * c-c++-common/torture/builtin-convertvector-2.c: New test. * c-c++-c

[PATCH] Improve integer bit test on __atomic_fetch_[or|and]_* returns

2021-11-09 Thread liuhongt via Gcc-patches
likewise below. Changed, with a bit adjustment int ibit = wi::exact_log2 (wi::zext (wi::bit_not (wi::to_wide (@0)), TYPE_PRECISION(type))); wi::zext is needed when upper bits are all ones after bit_not operation. > > +  if (!sing

[PATCH] rs6000/doc: Rename future cpu with power10

2021-11-09 Thread Kewen.Lin via Gcc-patches
Hi, Commmit 5d9d0c94588 renamed future to power10 and ace60939fd2 updated the documentation for "future" renaming. This patch is to rename the remaining "future architecture" references in documentation. Is it ok for trunk? BR, Kewen - gcc/ChangeLog: * doc

[PATCH] [i386] Extend vpcmov to handle V8HF/V16HFmode under TARGET_XOP.

2021-11-09 Thread liuhongt via Gcc-patches
This patch fixes ICE in pr103151. Bootstrap and regtest on x86_64-linux-gnu{-m32,}. Ready to push to trunk. gcc/ChangeLog: PR target/103151 * config/i386/sse.md (V_128_256): Extend to V8HF/V16HF. (avxsizesuffix): Ditto. gcc/testsuite/ChangeLog: * gcc.target

Re: [PATCH] rs6000/doc: Rename future cpu with power10

2021-11-10 Thread Kewen.Lin via Gcc-patches
ell. > Good point! The comment is also applied for mma, prefixed and float128. > So maybe this should just delete from after "addressing" to the end of > that line? It already says what the prerequisites are, on the very next > line :-) > Thanks for the suggestion. The

[r12-5113 Regression] FAIL: 18_support/nested_exception/rethrow_if_nested.cc (test for excess errors) on Linux/x86_64

2021-11-10 Thread sunil.k.pandey via Gcc-patches
/rethrow_if_nested.cc (test for excess errors) FAIL: gfortran.dg/inline_matmul_17.f90 -O scan-tree-dump-times optimized "matmul_r4" 2 with GCC configured with ../../gcc/configure --prefix=/local/skpandey/gccwork/toolwork/gcc-bisect-master/master/r12-5113/usr --enable-clocale=gnu --with-system-z

[PATCH] [COMMITTED] aarch64: [PR103170] Fix aarch64_simd_dup

2021-11-10 Thread apinski--- via Gcc-patches
. PR target/103170 gcc/ChangeLog: * config/aarch64/aarch64-simd.md (aarch64_simd_dup): Use vwcore iterator for the r constraint output string. gcc/testsuite/ChangeLog: * gcc.c-torture/compile/vector-dup-1.c: New test. --- gcc/config/aarch64/aarch64-simd.md

[r12-5126 Regression] FAIL: gfortran.dg/do_subscript_3.f90 -O (test for excess errors) on Linux/x86_64

2021-11-10 Thread sunil.k.pandey via Gcc-patches
excess errors) with GCC configured with ../../gcc/configure --prefix=/local/skpandey/gccwork/toolwork/gcc-bisect-master/master/r12-5126/usr --enable-clocale=gnu --with-system-zlib --with-demangler-in-ld --with-fpmath=sse --enable-languages=c,c++,fortran --enable-cet --without-isl --enable-libmpx

[r12-5113 Regression] FAIL: 18_support/nested_exception/rethrow_if_nested.cc (test for excess errors) on Linux/x86_64

2021-11-10 Thread sunil.k.pandey via Gcc-patches
errors) FAIL: std/ranges/adaptors/join.cc (test for excess errors) with GCC configured with ../../gcc/configure --prefix=/local/skpandey/gccwork/toolwork/gcc-bisect-master/master/r12-5113/usr --enable-clocale=gnu --with-system-zlib --with-demangler-in-ld --with-fpmath=sse --enable-languages=c,c

Re: [PATCH] rs6000/doc: Rename future cpu with power10

2021-11-11 Thread Kewen.Lin via Gcc-patches
on 2021/11/10 下午6:03, Segher Boessenkool wrote: > Hi! > > On Wed, Nov 10, 2021 at 05:39:27PM +0800, Kewen.Lin wrote: >> @@ -27779,10 +27779,10 @@ Enable/disable the @var{__float128} keyword for >> IEEE 128-bit floating point >> and use either software emulation for IEEE 128-bit floating point or

[r12-5150 Regression] FAIL: gfortran.dg/vector_subscript_1.f90 -Os execution test on Linux/x86_64

2021-11-11 Thread sunil.k.pandey via Gcc-patches
execution test FAIL: gfortran.dg/vector_subscript_1.f90 -Os execution test with GCC configured with ../../gcc/configure --prefix=/local/skpandey/gccwork/toolwork/gcc-bisect-master/master/r12-5150/usr --enable-clocale=gnu --with-system-zlib --with-demangler-in-ld --with-fpmath=sse --enable-languages

[r12-5194 Regression] FAIL: c-c++-common/goacc/firstprivate-mappings-1.c scan-tree-dump omplower "(?n)#pragma omp target oacc_parallel firstprivate\\(array_li.[0-9]+\\) map\\(from:array_so \\[len: 4\\

2021-11-12 Thread sunil.k.pandey via Gcc-patches
/goacc/firstprivate-mappings-1.c scan-tree-dump omplower "(?n)#pragma omp target oacc_parallel firstprivate\\(array_li.[0-9]+\\) map\\(from:array_so \\[len: 4\\]\\) \\[" with GCC configured with ../../gcc/configure --prefix=/local/skpandey/gccwork/toolwork/gcc-bisect-master/master/r1

[r12-5201 Regression] FAIL: g++.dg/pr98499.C -std=gnu++98 execution test on Linux/x86_64

2021-11-12 Thread sunil.k.pandey via Gcc-patches
++.dg/pr98499.C -std=gnu++17 execution test FAIL: g++.dg/pr98499.C -std=gnu++2a execution test FAIL: g++.dg/pr98499.C -std=gnu++98 execution test with GCC configured with ../../gcc/configure --prefix=/local/skpandey/gccwork/toolwork/gcc-bisect-master/master/r12-5201/usr --enable-clocale=gnu

[PATCH] tree-optimization: [PR103218] Fold ((type)(a<0)) << SIGNBITOFA into ((type)a) & signbit

2021-11-13 Thread apinski--- via Gcc-patches
"a << CST1" and fold actually does the reverse of folding "(a<0)<> C) into -(x > 0) where C = precision(type) - 1. */ (for cst (INTEGER_CST VECTOR_CST) (simplify diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr103218-1.c b/gcc/testsuite/gcc.dg/tree-ssa/pr103218-1

[r12-5236 Regression] FAIL: gcc.dg/tree-prof/merge_block.c scan-tree-dump-not optimized "Invalid sum" on Linux/x86_64

2021-11-13 Thread sunil.k.pandey via Gcc-patches
-O2 execution test FAIL: c-c++-common/tsan/free_race.c -O2 execution test FAIL: gcc.dg/ipa/ipa-sra-4.c scan-ipa-dump-times sra "Will split parameter" 2 FAIL: gcc.dg/tree-prof/merge_block.c scan-tree-dump-not optimized "Invalid sum" with GCC configured with ../../gcc/config

[PATCH] [Commmitted] Move some testcases to torture from tree-ssa

2021-11-14 Thread apinski--- via Gcc-patches
re/execute. Committed after testing to make sure the testcases pass. gcc/testsuite/ChangeLog: * gcc.dg/tree-ssa/pr100278.c: Move to ... * gcc.c-torture/compile/pr100278.c: Here. Remove dg-do and dg-options. * gcc.dg/tree-ssa/pr101189.c: Move to ... * gcc.c-tortu

[PATCH] PR tree-optimization/103216: optimize some A ? (b op CST) : b into b op (A?CST:CST2)

2021-11-14 Thread apinski--- via Gcc-patches
for now. Also all of these patterns need to be done late as other optimizations can be done without them. OK? Bootstrapped and tested on x86_64 with no regressions. gcc/ChangeLog: * doc/match-and-simplify.texi: Document ^ flag. * genmatch.c (expr::expr): Add Setting of force_si

[PATCH] tree-optimization: [PR103245] Improve detection of abs pattern using multiplication

2021-11-15 Thread apinski--- via Gcc-patches
. This patch combines the two patterns together for the abs match when using multiplication and adds a few places where nop_convert are optional. OK? Bootstrapped and tested on x86_64-linux-gnu with no regressions. PR tree-optimization/103245 gcc/ChangeLog: * match.pd: Combine the

[PATCH] Fix PR tree-optimization/103228 and 103228: folding of (type) X op CST where type is a nop convert

2021-11-15 Thread apinski--- via Gcc-patches
conversion is a nop. OK? Boostrapped and tested on x86_64-linux-gnu with no regressions. PR tree-optimization/103228 PR tree-optimization/55177 gcc/ChangeLog: * match.pd ((type) X bitop CST): Also do this transformation for nop conversions. gcc/testsuite/ChangeLog

[r12-5292 Regression] FAIL: gcc.dg/tree-ssa/modref-dse-5.c scan-tree-dump dse2 "Deleted dead store: wrap" on Linux/x86_64

2021-11-16 Thread sunil.k.pandey via Gcc-patches
-tree-dump dse2 "Deleted dead store: wrap" with GCC configured with ../../gcc/configure --prefix=/local/skpandey/gccwork/toolwork/gcc-bisect-master/master/r12-5292/usr --enable-clocale=gnu --with-system-zlib --with-demangler-in-ld --with-fpmath=sse --enable-languages=c,c++,fortran --

[r12-5301 Regression] FAIL: gcc.dg/tree-ssa/if-to-switch-3.c scan-tree-dump iftoswitch "Condition chain with [^\n\r]* BBs transformed into a switch statement." on Linux/x86_64

2021-11-16 Thread sunil.k.pandey via Gcc-patches
-dump iftoswitch "Condition chain with [^\n\r]* BBs transformed into a switch statement." with GCC configured with ../../gcc/configure --prefix=/local/skpandey/gccwork/toolwork/gcc-bisect-master/master/r12-5301/usr --enable-clocale=gnu --with-system-zlib --with-demangler-in-ld --w

[r12-5324 Regression] FAIL: gcc.dg/tree-ssa/modref-dse-4.c scan-tree-dump dse2 "Deleted dead store: kill_me" on Linux/x86_64

2021-11-16 Thread sunil.k.pandey via Gcc-patches
.c scan-tree-dump dse2 "Deleted dead store: kill_me" with GCC configured with ../../gcc/configure --prefix=/local/skpandey/gccwork/toolwork/gcc-bisect-master/master/r12-5324/usr --enable-clocale=gnu --with-system-zlib --with-demangler-in-ld --with-fpmath=sse --enable-languages=c,c

[PATCH] Enhance optimize_atomic_bit_test_and to handle truncation.

2021-11-16 Thread liuhongt via Gcc-patches
amp;pscc_a_2_3, n_7(D), 0); _5 = (unsigned int) _14; _6 = (int) _5; Bootstrapped and regtested on x86_64-pc-linux-gnu{-m32,} Ok for trunk? 2021-11-17 Hongtao Liu H.J. Lu gcc/ChangeLog: PR tree-optimization/103194 * match.pd (gimple_nop_atomic_bit_test_

Re: [PATCH 06/15] visium: Fix non-robust split condition in define_insn_and_split

2021-11-16 Thread Kewen.Lin via Gcc-patches
Hi Eric, on 2021/11/17 上午12:57, Eric Botcazou wrote: >> gcc/ChangeLog: >> >> * config/visium/visium.md (*add3_insn, *addsi3_insn, *addi3_insn, >> *sub3_insn, *subsi3_insn, *subdi3_insn, *neg2_insn, >> *negdi2_insn, *and3_insn, *ior3_insn, *xor3

[PATCH] Fix tree-optimization/101941: IPA splitting out function with error attribute

2021-11-16 Thread apinski--- via Gcc-patches
and tested on x86_64-linux-gnu with no regressions. PR tree-optimization/101941 gcc/ChangeLog: * ipa-split.c (visit_bb): Disallow function calls where the function has either error or warning attribute. gcc/testsuite/ChangeLog: * gcc.c-torture/compile/pr101941-1.c

[PATCH] Fix PR 103288, ICE after PHI-OPT, move an assigment when still in use for another bb

2021-11-16 Thread apinski--- via Gcc-patches
regressions. PR 103288 gcc/ChangeLog: * tree-ssa-phiopt.c (value_replacement): Return early if middle block has more than one pred. gcc/testsuite/ChangeLog: * gcc.c-torture/compile/pr103288-1.c: New test. --- gcc/testsuite/gcc.c-torture/compile/pr103288-1.c | 6

[PATCH] Fix tree-optimization/103257: Missed jump threading due too early conversion of bool*A into bool?A:0

2021-11-17 Thread apinski--- via Gcc-patches
? Bootstrapped and tested on x86_64-linux-gnu with no regressions. PR tree-optimization/103257 gcc/ChangeLog: * match.pd (((m1 >/=/<= m2) * d -> (m1 >/=/<= m2) ? d : 0): Disable until !canonicalize_math_p (). gcc/testsuite/ChangeLog: * gcc.dg/tr

[PATCH v2] vect: Replace hardcoded weight factor with param

2021-05-19 Thread Kewen.Lin via Gcc-patches
patch is an improvement already. > Thanks for your nice suggestions! I've updated the patch accordingly and attached it. Does it look better to you? btw, the testing on the previous patch passed, new round testing was just kicked off. BR, Kewen -- gcc/ChangeLog: * doc/

[r12-928 Regression] FAIL: g++.dg/opt/pr94589-2.C -std=gnu++2a scan-tree-dump-times optimized "[ij]_[0-9]+\\(D\\) (?:<|<=|==|!=|>|>=) [ij]_[0-9]+\\(D\\)" 12 on Linux/x86_64

2021-05-19 Thread sunil.k.pandey via Gcc-patches
n-tree-dump-times optimized "i_[0-9]+\\(D\\) (?:<|<=|==|!=|>|>=) 5\\.0" 12 FAIL: g++.dg/opt/pr94589-2.C -std=gnu++2a scan-tree-dump-times optimized "[ij]_[0-9]+\\(D\\) (?:<|<=|==|!=|>|>=) [ij]_[0-9]+\\(D\\)" 12 with GCC configured with ../../gcc/co

[PATCH] PCH large file bug

2021-05-19 Thread Evgeniy via Gcc-patches
Hello, can I ask somebody to push the patch to fix the PCH large file problem (BUG 14940)? The bug fix was sent in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=14940#c49 and https://gcc.gnu.org/bugzilla/show_bug.cgi?id=14940#c50 I would copy and paste it, but I'm not the author of this patch. Ev

Ping^1: [PATCH 1/2] correct BB frequencies after loop changed

2021-05-20 Thread guojiufu via Gcc-patches
Gentle ping^. On 2021-05-07 10:36, guojiufu via Gcc-patches wrote: Gentle ping. Original message: https://gcc.gnu.org/pipermail/gcc-patches/2020-October/555871.html Thanks, Jiufu Guo.

Re: [PATCH v2] vect: Replace hardcoded weight factor with param

2021-05-20 Thread Kewen.Lin via Gcc-patches
on 2021/5/19 下午6:01, Richard Biener wrote: > On Wed, May 19, 2021 at 11:47 AM Kewen.Lin wrote: >> >> Hi Richi, >> >> on 2021/5/19 下午4:15, Richard Biener wrote: >>> On Wed, May 19, 2021 at 8:20 AM Kewen.Lin wrote: Hi, This patch is to replace the current hardcoded weight factor

Re: [PATCH] go/100537 - Bootstrap-O3 and bootstrap-debug fail

2021-05-20 Thread guojiufu via Gcc-patches
On 2021-05-18 14:58, Richard Biener wrote: On Mon, 17 May 2021, Ian Lance Taylor wrote: On Mon, May 17, 2021 at 1:17 AM Richard Biener via Gcc-patches wrote: > > On Fri, May 14, 2021 at 11:19 AM guojiufu via Gcc-patches > wrote: > > > > On 2021-05-14 15:39, guojiufu

Re: [PATCH v2] vect: Replace hardcoded weight factor with param

2021-05-20 Thread Kewen.Lin via Gcc-patches
on 2021/5/20 下午5:30, Christophe Lyon wrote: > On Thu, 20 May 2021 at 10:52, Kewen.Lin via Gcc-patches > wrote: >> >> on 2021/5/19 下午6:01, Richard Biener wrote: >>> On Wed, May 19, 2021 at 11:47 AM Kewen.Lin wrote: >>>> >>>> Hi Richi, >>&g

Re: [PATCH v2] vect: Replace hardcoded weight factor with param

2021-05-20 Thread Kewen.Lin via Gcc-patches
on 2021/5/20 下午6:25, Richard Biener wrote: > On Thu, May 20, 2021 at 12:09 PM Kewen.Lin wrote: >> >> on 2021/5/20 下午5:30, Christophe Lyon wrote: >>> On Thu, 20 May 2021 at 10:52, Kewen.Lin via Gcc-patches >>> wrote: >>>> >>>> on 2021/5/19

[r12-989 Regression] FAIL: libgomp.oacc-fortran/privatized-ref-2.f90 -DACC_DEVICE_TYPE_host=1 -DACC_MEM_SHARED=1 -foffload=disable -Os (test for warnings, line 98) on Linux/x86_64

2021-05-21 Thread sunil.k.pandey via Gcc-patches
libgomp.oacc-fortran/privatized-ref-2.f90 -DACC_DEVICE_TYPE_host=1 -DACC_MEM_SHARED=1 -foffload=disable -Os (test for warnings, line 98) with GCC configured with ../../gcc/configure --prefix=/local/skpandey/gccwork/toolwork/gcc-bisect-master/master/r12-989/usr --enable-clocale=gnu --with-system-z

[PATCHv2] Add a couple of A?CST1:CST2 match and simplify optimizations

2021-05-23 Thread apinski--- via Gcc-patches
and tested on x86_64-linux-gnu with no regressions. Differences from V1: * Use bit_xor 1 instead of bit_not to fix the problem with boolean types which are not 1 bit precision. Thanks, Andrew Pinski gcc: * match.pd (A?CST1:CST2): Add simplifcations for A?0:+-1, A?+-1:0, A?POW2:0 and

[PATCH] Optimize x < 0 ? ~y : y to (x >> 31) ^ y in match.pd

2021-05-23 Thread apinski--- via Gcc-patches
n and I added a new testcase to optimize during phiopt. OK? Bootstrapped and tested on x86_64-linux-gnu with no regressions. Thanks, Andrew Pinski gcc: * match.pd (x < 0 ? ~y : y): New patterns. gcc/testsuite: * gcc.dg/tree-ssa/pr96928.c: Update test for slightly different IR.

[PATCH] Fix two testcases for ssa names which are more than 1 digit

2021-05-23 Thread apinski--- via Gcc-patches
From: Andrew Pinski phi-opt-10.c and phi-opt-7.c both depend on currently that some ssa name versions are one digit long which is not always correct. This fixes the problem by detecting digits rather than just using '.'. Committed as obvious after a bootstrap/test. Thanks, Andrew P

[PATCHv2] Optimize x < 0 ? ~y : y to (x >> 31) ^ y in match.pd

2021-05-23 Thread apinski--- via Gcc-patches
n and I added a new testcase to optimize during phiopt. OK? Bootstrapped and tested on x86_64-linux-gnu with no regressions. Thanks, Andrew Pinski Differences from v1: V2: Add check for integeral type to make sure vector types are not done. gcc: * match.pd (x < 0 ? ~y : y): New pa

[PATCH] Use match-and-simplify in phi-opt

2021-05-23 Thread apinski--- via Gcc-patches
From: Andrew Pinski To simplify PHI-OPT and future improvements to it in most (but not all) cases, using match-and-simplify simplifies how much code is needed to be added. This depends on the following two patches: https://gcc.gnu.org/pipermail/gcc-patches/2021-May/571033.html https

Re: [PATCH][vect] Use main loop's thresholds and vectorization factor to narrow upper_bound of epilogue

2021-05-24 Thread Kewen.Lin via Gcc-patches
Hi Andre, on 2021/5/24 下午2:17, Andre Vieira (lists) via Gcc-patches wrote: > Hi, > > When vectorizing with --param vect-partial-vector-usage=1 the vectorizer uses > an unpredicated (all-true predicate for SVE) main loop and a predicated tail > loop. The way this was implemente

Re: [GOVERNANCE] Where to file complaints re project-maintainers?

2021-05-24 Thread abebeos via Gcc-patches
Please, get serious. => this topic is closed for me, so STOP CC''ing ME, it is not welcome. On Sun, 23 May 2021 at 19:03, Mike Stump wrote: > This isn't a patch to gcc, please stop posting non-technical content to > this list. Please review what this list is for and

Re: [PATCH][vect] Use main loop's thresholds and vectorization factor to narrow upper_bound of epilogue

2021-05-25 Thread Kewen.Lin via Gcc-patches
on 2021/5/24 下午3:21, Kewen.Lin via Gcc-patches wrote: > Hi Andre, > > on 2021/5/24 下午2:17, Andre Vieira (lists) via Gcc-patches wrote: >> Hi, >> >> When vectorizing with --param vect-partial-vector-usage=1 the vectorizer >> uses an unpredicated (all-true p

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

2021-05-25 Thread sunil.k.pandey via Gcc-patches
-reduction-1.C execution test FAIL: libgomp.c++/task-reduction-15.C execution test FAIL: libgomp.c++/task-reduction-16.C execution test with GCC configured with ../../gcc/configure --prefix=/local/skpandey/gccwork/toolwork/gcc-bisect-master/master/r12-1044/usr --enable-clocale=gnu --with-system-zlib

[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
-reduction-8.C execution test with GCC configured with ../../gcc/configure --prefix=/local/skpandey/gccwork/toolwork/gcc-bisect-master/master/r12-1045/usr --enable-clocale=gnu --with-system-zlib --with-demangler-in-ld --with-fpmath=sse --enable-languages=c,c++,fortran --enable-cet --without-isl

[PATCH v2] rs6000: Add load density heuristic

2021-05-25 Thread Kewen.Lin via Gcc-patches
very-cheap} {,-ffast-math} * {-O3, -Ofast} {,-funroll-loops} bwaves_r degradations on P8/P9 have been fixed, nothing else remarkable was observed. Is it ok for trunk? [1] https://gcc.gnu.org/pipermail/gcc-patches/2021-May/570076.html BR, Kewen - gcc/ChangeLog: * config/rs6000/rs6000.c

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 con

[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
with GCC configured with ../../gcc/configure --prefix=/local/skpandey/gccwork/toolwork/gcc-bisect-master/master/r12-1053/usr --enable-clocale=gnu --with-system-zlib --with-demangler-in-ld --with-fpmath=sse --enable-languages=c,c++,fortran --enable-cet --without-isl --enable-libmpx x86_64

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 ver

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

2021-05-25 Thread Kewen.Lin via Gcc-patches
ec-perm-indices change. > Thanks Richi! Hi Richard, Gentle ping for the vec-perm-indices change in case this thread escaped from your radar. https://gcc.gnu.org/pipermail/gcc-patches/2021-May/570240.html BR, Kewen

[r12-1075 Regression] FAIL: gcc.target/i386/pr100637-3w.c scan-assembler pmulhrsw on Linux/x86_64

2021-05-26 Thread sunil.k.pandey via Gcc-patches
pmulhrsw with GCC configured with ../../gcc/configure --prefix=/local/skpandey/gccwork/toolwork/gcc-bisect-master/master/r12-1075/usr --enable-clocale=gnu --with-system-zlib --with-demangler-in-ld --with-fpmath=sse --enable-languages=c,c++,fortran --enable-cet --without-isl --enable-libmpx x86_64

[r12-1078 Regression] FAIL: gcc.dg/Wstringop-overflow-55.c pr????? (test for warnings, line 94) on Linux/x86_64

2021-05-26 Thread sunil.k.pandey via Gcc-patches
? (test for warnings, line 86) FAIL: gcc.dg/Wstringop-overflow-55.c pr? (test for warnings, line 94) with GCC configured with ../../gcc/configure --prefix=/local/skpandey/gccwork/toolwork/gcc-bisect-master/master/r12-1078/usr --enable-clocale=gnu --with-system-zlib --with-demangler-in-ld --with

[PATCH PR100499]Fix wrong niter info caused by overflow behavior

2021-05-26 Thread bin.cheng via Gcc-patches
Hi, As described in PR100499, loop niters analysis for "!=" now relies on multiple_of_p which so far is mostly implemented for no-overflow scenarios. This patch fixes the issue by: 1. add new parameter to multiple_of_p indicating no-wrapping behavior in top expression. 2. pass new argument to h

[r12-1075 Regression] FAIL: gcc.target/i386/pr100637-3w.c scan-assembler pmulhrsw on Linux/x86_64

2021-05-26 Thread sunil.k.pandey via Gcc-patches
scan-tree-dump vect "LOOP EPILOGUE VECTORIZED" FAIL: gcc.dg/vect/vect-epilogues.c scan-tree-dump vect "LOOP EPILOGUE VECTORIZED" with GCC configured with ../../gcc/configure --prefix=/local/skpandey/gccwork/toolwork/gcc-bisect-master/master/r12-1075/usr --enable-cloca

[r12-1085 Regression] FAIL: gcc.target/i386/pr100637-3w.c scan-assembler pavgw on Linux/x86_64

2021-05-27 Thread sunil.k.pandey via Gcc-patches
-3w.c scan-assembler pavgw FAIL: gcc.target/i386/pr100637-3w.c scan-assembler pmulhrsw with GCC configured with ../../gcc/configure --prefix=/local/skpandey/gccwork/toolwork/gcc-bisect-master/master/r12-1085/usr --enable-clocale=gnu --with-system-zlib --with-demangler-in-ld --with-fpmath=sse

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

2021-05-27 Thread Kewen.Lin via Gcc-patches
on 2021/5/27 下午8:55, Richard Sandiford wrote: > Sorry for the slow reponse. > > "Kewen.Lin" writes: >> diff --git a/gcc/vec-perm-indices.c b/gcc/vec-perm-indices.c >> index ede590dc5c9..57dd11d723c 100644 >> --- a/gcc/vec-perm-indices.c >> +++ b/

[PATCH] Fix PR 95481: tail call fails with empty struct types

2021-05-30 Thread apinski--- via Gcc-patches
th no regressions. Thanks, Andrew Pinski gcc/ChangeLog: * tree-tailcall.c (zero_sized_decl): New function. (find_tail_calls): Handle zero sized return decls. gcc/testsuite/ChangeLog: * gcc.dg/tree-ssa/tailcall-10.c: New test. * gcc.dg/tree-ssa/tailcall-11.c: New

[PATCH 1/2] Use is_empty_type instead of zero-sized type.

2021-05-31 Thread apinski--- via Gcc-patches
. Thanks, Andrew Pinski gcc/ChangeLog: * gimplify.c (zero_sized_field_decl): Delete (zero_sized_type): Delete (gimplify_init_ctor_eval): Use is_empty_type instead of zero_sized_field_decl. (gimplify_modify_expr): Use is_empty_type instead of

[PATCH 2/2] Fix PR 95481: tail call fails with empty struct types

2021-05-31 Thread apinski--- via Gcc-patches
sions. Thanks, Andrew Pinski changes since v1: v2: Use is_empty_type instead of zero-sized type. PR tree-opt/95481 gcc/ChangeLog: * tree-tailcall.c (find_tail_calls): Handle empty typed return decls. gcc/testsuite/ChangeLog: * gcc.dg/tree-ssa/tailcall-10.c: New

Re: [PATCH V2] Split loop for NE condition.

2021-05-31 Thread guojiufu via Gcc-patches
sing sth), may_be_zero would be sth like k < n. It would be nice to not split this into loops that niter analysis cannot handle ... For this case on the first loop, it is not vectorized by trunk gcc. While since we know the type of 'k' and 'n' is unsigned, the umber of ite

[PATCH] Replace conditional_replacement with match and simplify

2021-05-31 Thread apinski--- via Gcc-patches
From: Andrew Pinski This is the first of series of patches to simplify phi-opt to use match and simplify in many cases. This simplification will more things to optimize. This is what Richard requested in https://gcc.gnu.org/pipermail/gcc-patches/2021-May/571197.html and I think it is the right

Re: [PATCH V2] Split loop for NE condition.

2021-06-01 Thread guojiufu via Gcc-patches
On 2021-06-01 11:28, guojiufu via Gcc-patches wrote: On 2021-05-26 17:50, Richard Biener wrote: On Mon, 17 May 2021, Jiufu Guo wrote: Or relax all this, of course. It would easy to handle the above cases: e->src before latch, or simple header. To relax this, we may need to p

[PATCH PR100740]Fix overflow check in simplifying exit cond comparing two IVs.

2021-06-01 Thread bin.cheng via Gcc-patches
Hi, As described in patch summary, this fixes the wrong code issue by adding overflow-ness check for iv1.step - iv2.step. Bootstrap and test on x86_64. Any comments? Thanks, bin pr100740-20210525.txt Description: Binary data

[PATCH] Improve match_simplify_replacement in phi-opt

2021-06-01 Thread apinski--- via Gcc-patches
no regressions. gcc/ChangeLog: PR tree-optimization/25290 * tree-ssa-phiopt.c (xor_replacement): Delete. (tree_ssa_phiopt_worker): Delete use of xor_replacement. (match_simplify_replacement): Allow one cheap preparation statement that can be moved to before

[no subject]

2021-06-01 Thread liuhongt via Gcc-patches
This is the updated patch.

[PATCH] Canonicalize (vec_duplicate (not A)) to (not (vec_duplicate A)).

2021-06-01 Thread liuhongt via Gcc-patches
For i386, it will enable below opt from notl%edi vpbroadcastd%edi, %xmm0 vpand %xmm1, %xmm0, %xmm0 to vpbroadcastd%edi, %xmm0 vpandn %xmm1, %xmm0, %xmm0 gcc/ChangeLog: PR target/100711 * simplify-rtx.c

[PATCH] Canonicalize (vec_duplicate (not A)) to (not (vec_duplicate A)).

2021-06-01 Thread liuhongt via Gcc-patches
For i386, it will enable below opt from notl%edi vpbroadcastd%edi, %xmm0 vpand %xmm1, %xmm0, %xmm0 to vpbroadcastd%edi, %xmm0 vpandn %xmm1, %xmm0, %xmm0 gcc/ChangeLog: PR target/100711 * simplify-rtx.c

Re: [PATCH 02/11] arc: Update unexpected empty split condition

2021-06-02 Thread Kewen.Lin via Gcc-patches
> *Sent:* Wednesday, June 2, 2021 8:04 AM > *To:* gcc-patches@gcc.gnu.org > *Cc:* Kewen Lin ; g...@amylaar.uk ; > Claudiu Zissulescu ; andrew.burg...@embecosm.com > > *Subject:* [PATCH 02/11] arc: Update unexpected empty split condition >   > gcc/ChangeLog: > >

Re: [PATCH 01/11] gen: Emit error msg for empty split condition

2021-06-02 Thread Kewen.Lin via Gcc-patches
e way that the current patch provided is not to allow the developer to write that kind of pattern, instead he/she has to go with separated define_insn and define_split. BR, Kewen >> gcc/ChangeLog: >> >> * gensupport.c (process_rtx): Emit error message for empty >>

[PATCH 02/11 v2] arc: Remove define_insn_and_split *bbit_di

2021-06-02 Thread Kewen.Lin via Gcc-patches
uch trouble? > The patch v2 has been attached which removes define_insn_and_split "*bbit_di" as you suggested. Does it look good to you? BR, Kewen - gcc/ChangeLog: * config/arc/arc.md (*bbit_di): Remove. diff --git a/gcc/config/arc/arc.md b/gcc/config/arc/arc.md inde

Re: [PATCH 01/11] gen: Emit error msg for empty split condition

2021-06-02 Thread Kewen.Lin via Gcc-patches
> Note I'm not familiar with all the details here but the documentation > does seem ambiguous at best, not supporting to error on empty > split-conditions at least. > Yes, the current patch will stop the "" condition which was accepted before. Thanks for bringing this up! We have to update the documentation if people reach a consensus. [1] https://gcc.gnu.org/pipermail/gcc-patches/2021-March/567014.html BR, Kewen

Re: [RFC/PATCH 00/11] Fix up some unexpected empty split conditions

2021-06-02 Thread Kewen.Lin via Gcc-patches
Hi Richard, on 2021/6/2 下午4:11, Richard Sandiford wrote: > Kewen Lin writes: >> Hi all, >> >> define_insn_and_split should avoid to use empty split condition >> if the condition for define_insn isn't empty, otherwise it can >> sometimes result in unexpected consequence, since the split >> will al

[PATCH] predcom: Adjust some unnecessary update_ssa calls

2021-06-02 Thread Kewen.Lin via Gcc-patches
-build-config=bootstrap-O3, and passed both P8 and P9 SPEC2017 full build with {-O3, -Ofast} + {,-funroll-loops}. Is it ok for trunk? BR, Kewen - gcc/ChangeLog: * tree-predcom.c (execute_pred_commoning): Remove update_ssa call. (tree_predictive_commoning_loop): Factor some

[PATCH] predcom: Enabled by loop vect at O2 [PR100794]

2021-06-02 Thread Kewen.Lin via Gcc-patches
an degrade some bmks like 521.wrf_r -9.17% and 549.fotonik3d_r -2.07% etc. Bootstrapped/regtested on powerpc64le-linux-gnu P9, x86_64-redhat-linux and aarch64-linux-gnu. Is it ok for trunk? BR, Kewen - gcc/ChangeLog: PR tree-optimization/100794 *

Re: [RFC/PATCH 00/11] Fix up some unexpected empty split conditions

2021-06-02 Thread Kewen.Lin via Gcc-patches
on 2021/6/2 下午5:13, Richard Sandiford wrote: > "Kewen.Lin" writes: >> Hi Richard, >> >> on 2021/6/2 锟斤拷锟斤拷4:11, Richard Sandiford wrote: >>> Kewen Lin writes: Hi all, define_insn_and_split should avoid to use empty split condition if the condition for define_insn isn't empty,

[PATCH v2] predcom: Enabled by loop vect at O2 [PR100794]

2021-06-02 Thread Kewen.Lin via Gcc-patches
Hi Richard, on 2021/6/3 上午1:19, Richard Sandiford wrote: > "Kewen.Lin via Gcc-patches" writes: >> Hi, >> >> As PR100794 shows, in the current implementation PRE bypasses >> some optimization to avoid introducing loop carried dependence >> which stops

Re: [RFC/PATCH 00/11] Fix up some unexpected empty split conditions

2021-06-02 Thread Kewen.Lin via Gcc-patches
Hi Richi/Richard/Jeff/Segher, Thanks for the comments! on 2021/6/3 上午7:52, Segher Boessenkool wrote: > On Wed, Jun 02, 2021 at 06:32:13PM +0100, Richard Sandiford wrote: >> Richard Biener writes: >>> So what Richard suggests would be to disallow split conditions >>> that do not start with "&& ",

[PATCH] Improve match_simplify_replacement in phi-opt

2021-06-02 Thread apinski--- via Gcc-patches
on x86_64-linux-gnu with no regressions. Thanks, Andrew Pinski Changes since v1: v2 - change the check on the preparation statement to allow only assignments and no calls and only assignments that feed into the phi. gcc/ChangeLog: PR tree-optimization/25290 * tree-ssa-phiopt.c

Re: [PATCH 04/11] cris: Update unexpected empty split condition

2021-06-02 Thread Kewen.Lin via Gcc-patches
Hi Nilsson, on 2021/6/2 下午8:45, Hans-Peter Nilsson wrote: >> From: Kewen Lin >> Date: Wed, 2 Jun 2021 07:04:54 +0200 > >> gcc/ChangeLog: >> >> * config/cris/cris.md (*addi_reload): Fix empty split condition. >> --- >> gcc/config/cris/cris.md

[PATCH 1/2] CALL_INSN may not be a real function call.

2021-06-02 Thread liuhongt via Gcc-patches
Use "used" flag for CALL_INSN to indicate it's a fake call. If it's a fake call, it won't have its own function stack. gcc/ChangeLog PR target/82735 * df-scan.c (df_get_call_refs): When call_insn is a fake call, it won't use stack

[PATCH 2/2] Fix _mm256_zeroupper by representing the instructions as call_insns in which the call has a special vzeroupper ABI.

2021-06-02 Thread liuhongt via Gcc-patches
special vzeroupper ABI. gcc/ChangeLog: PR target/82735 * config/i386/i386-expand.c (ix86_expand_builtin): Remove assignment of cfun->machine->has_explicit_vzeroupper. * config/i386/i386-features.c (ix86_add_reg_usage_to_vzerouppers):

[PATCH] [i386] Fix ICE of insn does not satisfy its constraints.

2021-06-03 Thread liuhongt via Gcc-patches
w/Ywm". Bootstrapped and regtested on x86_64-linux-gnu{-m32,} Ok for trunk? and backport to GCC10 and GCC11? BTW, I'm not sure should this patch be backport to GCC8 and GCC9 since constraints "Yw" is introduced in GCC10, if we want to do that, we also need to backport defina

Re: [Patch, fortran] PR fortran/100120/100816/100818/100819/100821 problems raised by aggregate data types

2021-06-03 Thread dhumieres.dominique--- via Gcc-patches
Hi José, Patch tested only on x86_64-pc-linux-gnu. Also tested on darwin20. The patch is OK for me. Thanks for the work, Dominique

Re: [RFC/PATCH 00/11] Fix up some unexpected empty split conditions

2021-06-03 Thread Kewen.Lin via Gcc-patches
ffer good readability. >> >> My proposal is to always require && (or maybe identical insn and split >> conditions should be allowed as well, if people still use that -- that >> is how we wrote "&& 1" before that existed). > > I prototyped this.

Re: [PATCH 04/11] cris: Update unexpected empty split condition

2021-06-03 Thread Kewen.Lin via Gcc-patches
on 2021/6/4 上午12:12, Hans-Peter Nilsson wrote: >> From: Kewen.Lin >> Date: Thu, 3 Jun 2021 07:45:57 +0200 > >> on 2021/6/2 Hans-Peter Nilsson wrote: >>>> From: Kewen Lin >>>> Date: Wed, 2 Jun 2021 07:04:54 +0200 >>> >>>> gcc

Re: [RFC/PATCH 00/11] Fix up some unexpected empty split conditions

2021-06-03 Thread Kewen.Lin via Gcc-patches
on 2021/6/3 下午4:05, Richard Sandiford wrote: > "Kewen.Lin" writes: >> Hi Richi/Richard/Jeff/Segher, >> >> Thanks for the comments! >> >> on 2021/6/3 锟斤拷锟斤拷7:52, Segher Boessenkool wrote: >>> On Wed, Jun 02, 2021 at 06:32:13PM +0100, Richard Sandiford wrote: Richard Biener writes: > So wh

Re: [Patch, fortran] PR fortran/100120/100816/100818/100819/100821 problems raised by aggregate data types

2021-06-05 Thread dhumieres.dominique--- via Gcc-patches
Since the PRs are about wrong code, I think the patch should be back ported to at least GCC11. Dominique Le 2021-06-04 17:24, Paul Richard Thomas a écrit : Hi José, I can second Dominique's thanks. I applied it to my tree when you first posted, set the regtest in motion and have not been able

Re: [PATCH PR100740]Fix overflow check in simplifying exit cond comparing two IVs.

2021-06-06 Thread Bin.Cheng via Gcc-patches
On Wed, Jun 2, 2021 at 3:28 PM Richard Biener via Gcc-patches wrote: > > On Tue, Jun 1, 2021 at 4:00 PM bin.cheng via Gcc-patches > wrote: > > > > Hi, > > As described in patch summary, this fixes the wrong code issue by adding > > overflow-ness

Re:[Patch, fortran] PR fortran/93308/93963/94327/94331/97046 problems raised by descriptor handling

2021-06-06 Thread dhumieres.dominique--- via Gcc-patches
Hi José, Patch tested only on x86_64-pc-linux-gnu. Also tested on darwin20. The patch is OK for me provided the updated PR94331.c test file replaces the original one. Since the PRs are about wrong code, I think the patch should be backported to at least GCC11 (applied and regtested OK). Th

Re: Ping^2: [PATCH 1/2] correct BB frequencies after loop changed

2021-06-06 Thread guojiufu via Gcc-patches
Gentle ping ;) BR. Jiufu Guo On 2021-05-20 15:19, guojiufu via Gcc-patches wrote: Gentle ping^. On 2021-05-07 10:36, guojiufu via Gcc-patches wrote: Gentle ping. Original message: https://gcc.gnu.org/pipermail/gcc-patches/2020-October/555871.html Thanks, Jiufu Guo.

Re: [RFC] Implementing detection of saturation and rounding arithmetic

2021-06-07 Thread Bin.Cheng via Gcc-patches
On Fri, Jun 4, 2021 at 12:35 AM Andre Vieira (lists) via Gcc-patches wrote: > > Hi, > > This RFC is motivated by the IV sharing RFC in > https://gcc.gnu.org/pipermail/gcc-patches/2021-May/569502.html and the > need to have the IVOPTS pass be able to clean up IV's shared b

Re: [RFC/PATCH 00/11] Fix up some unexpected empty split conditions

2021-06-07 Thread Kewen.Lin via Gcc-patches
on 2021/6/7 下午3:12, Richard Biener wrote: > On Fri, Jun 4, 2021 at 4:58 AM Kewen.Lin via Gcc-patches > wrote: >> >> Hi Segher, >> >> on 2021/6/3 下午5:18, Segher Boessenkool wrote: >>> On Thu, Jun 03, 2021 at 03:00:44AM -0500, Segher Boessenkool wrote: >&g

<    12   13   14   15   16   17   18   19   20   21   >