[PATCH 3/3] power10: Add tests for PCREL_OPT.

2020-09-04 Thread Michael Meissner via Gcc-patches
power10: Add tests for PCREL_OPT. This patch add the PCREL_OPT tests for the previous two patches. I have built compilers with and without these set of 3 patches doing a bootstrap build and make check. There were no regressions, and the new tests passed. Can I check these patches into the

[PATCH 2/3] power10: Add PCREL_OPT store support.

2020-09-04 Thread Michael Meissner via Gcc-patches
power10: Add PCREL_OPT store support. This patch adds support for optimizing power10 stores to an external variable to eliminate loading the address of the variable, and then doing a subsequent load using that address. The previous patch added the support for optimizing power10 loads from an

[PATCH 1/3] power10: Add PCREL_OPT load support.

2020-09-04 Thread Michael Meissner via Gcc-patches
power10: Add PCREL_OPT load support. This patch adds support for optimizing power10 loads of an external variable to eliminate loading the address of the variable, and then doing a subsequent load using that address. The next patch will add the support for optimizing power10 stores to an

[PATCH 0/3] Power10 PCREL_OPT support (September 5th 2020)

2020-09-04 Thread Michael Meissner via Gcc-patches
The ELF-v2 ISA 3.1 support for Power10 has relocations to optimize cases where the code is references an external variable in only one location. This patch is similar to the optimizations that the linker already does to optimize TOC accesses. This patch is a revision of the patches last

[PATCH] c++: Fix ICE in reshape_init with init-list [PR95164]

2020-09-04 Thread Marek Polacek via Gcc-patches
This patch fixes a long-standing bug in reshape_init_r. Since r209314 we implement DR 1467 which handles list-initialization with a single initializer of the same type as the target. In this test this causes a crash in reshape_init_r when we're processing a constructor that has undergone the DR

[PATCH] profile: clarify comment around histogram format

2020-09-04 Thread Sergei Trofimovich via Gcc-patches
From: Sergei Trofimovich gcc/ChangeLog: * gcc/profile.c (sort_hist_values): Clarify hist format: start with a value, not counter. --- gcc/profile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/profile.c b/gcc/profile.c index f5c206813c7..fe8963cc9e9

[committed] d: Fix ICE in create_tmp_var, at gimple-expr.c:482

2020-09-04 Thread Iain Buclaw via Gcc-patches
Hi, Array concatenate expressions were creating more SAVE_EXPRs than what was necessary. The internal error itself was the result of a forced temporary being made on a TREE_ADDRESSABLE type. Bootstrapped and regression tested on x86_64-linux-gnu/-m32/-mx32. Committed to mainline and backported

Re: [PATCH] lra: Avoid cycling on certain subreg reloads [PR96796]

2020-09-04 Thread Vladimir Makarov via Gcc-patches
Richard, thank you for working on this issue and for as usually detailed explanation of the problem. On 2020-08-28 9:52 a.m., Richard Sandiford wrote: ... The patch is quite aggressive in that it does this for all reload pseudos in all reload instructions. I wondered about reusing the

Re: [PATCH v2] doc: add 'cd' command before 'make check-gcc' command in install.texi

2020-09-04 Thread Hans-Peter Nilsson
On Sat, 29 Aug 2020, Hu Jiangping wrote: > This patch add 'cd' command before 'make check-gcc' command > when run the testsuite on selected tests. No, don't do that; those targets work fine from the toplevel too, and then include the language libs. > Richard and I agree it would be good for

Re: PING [Patch][Middle-end]Add -fzero-call-used-regs=[skip|used-gpr|all-gpr|used|all]

2020-09-04 Thread Qing Zhao via Gcc-patches
> On Sep 4, 2020, at 1:04 PM, Segher Boessenkool > wrote: > > On Fri, Sep 04, 2020 at 12:18:12PM -0500, Qing Zhao wrote: >>> I call this very expensive, already, >> >> Yes, I think that 17.56% on average is quite expensive. That’s the data for >> -fzero-call-used-regs=all, the worst case

Re: PING [Patch][Middle-end]Add -fzero-call-used-regs=[skip|used-gpr|all-gpr|used|all]

2020-09-04 Thread H.J. Lu via Gcc-patches
On Fri, Sep 4, 2020 at 11:09 AM Segher Boessenkool wrote: > > On Fri, Sep 04, 2020 at 10:34:23AM -0700, H.J. Lu wrote: > > > You probably have to do this for every target separately? But it is not > > > enough to handle it in the epilogue, you also need to make sure it is > > > done on every

Re: PING [Patch][Middle-end]Add -fzero-call-used-regs=[skip|used-gpr|all-gpr|used|all]

2020-09-04 Thread Segher Boessenkool
On Fri, Sep 04, 2020 at 10:34:23AM -0700, H.J. Lu wrote: > > You probably have to do this for every target separately? But it is not > > enough to handle it in the epilogue, you also need to make sure it is > > done on every path that returns *without* epilogue. > > This feature is designed for

Re: PING [Patch][Middle-end]Add -fzero-call-used-regs=[skip|used-gpr|all-gpr|used|all]

2020-09-04 Thread Segher Boessenkool
On Fri, Sep 04, 2020 at 12:18:12PM -0500, Qing Zhao wrote: > > I call this very expensive, already, > > Yes, I think that 17.56% on average is quite expensive. That’s the data for > -fzero-call-used-regs=all, the worst case i.e, clearing all the call-used > registers at the return. > >

Re: PING [Patch][Middle-end]Add -fzero-call-used-regs=[skip|used-gpr|all-gpr|used|all]

2020-09-04 Thread H.J. Lu via Gcc-patches
On Fri, Sep 4, 2020 at 8:18 AM Segher Boessenkool wrote: > > Hi! > > On Mon, Aug 24, 2020 at 03:49:50PM -0500, Qing Zhao wrote: > > > Do you want to do this before or after the epilogue code is generated? > > > > static rtx_insn * > > make_epilogue_seq (void) > > { > > if

Re: PING [Patch][Middle-end]Add -fzero-call-used-regs=[skip|used-gpr|all-gpr|used|all]

2020-09-04 Thread Qing Zhao via Gcc-patches
> On Sep 4, 2020, at 10:43 AM, Segher Boessenkool > wrote: > > On Thu, Sep 03, 2020 at 10:13:35AM -0700, Kees Cook wrote: >> On Thu, Sep 03, 2020 at 09:29:54AM -0500, Qing Zhao wrote: >>> On average, all the options starting with “used_…” (i.e, only the >>> registers that are used in the

Re: [PATCH] correct handling of indices into arrays with elements larger than 1 (PR c++/96511)

2020-09-04 Thread Jason Merrill via Gcc-patches
On 9/3/20 2:44 PM, Martin Sebor wrote: On 9/1/20 1:22 PM, Jason Merrill wrote: On 8/11/20 12:19 PM, Martin Sebor via Gcc-patches wrote: -Wplacement-new handles array indices and pointer offsets the same: by adjusting them by the size of the element.  That's correct for the latter but wrong for

Re: [PATCH] rs6000: Add builtins for fegetround, feclearexcept and feraiseexcept [PR94193]

2020-09-04 Thread Segher Boessenkool
Hi! On Fri, Sep 04, 2020 at 12:44:17PM -0300, Raoni Fassina Firmino wrote: > > > + switch (INTVAL (operands[1])) > > > +{ > > > +case (1 << (31 - 6)): /* FE_INEXACT */ > > > > I would just write it as 0x02000 etc.? much clearer, and you have > > the comment demagicificating it

Re: ubsan: d-demangle.c:214 signed integer overflow

2020-09-04 Thread Iain Buclaw via Gcc-patches
Excerpts from Alan Modra's message of September 4, 2020 3:34 pm: > So this one is on top of the previously posted patch. > > * d-demangle.c (string_need): Take a size_t n arg, and use size_t tem. > (string_append): Use size_t n. > (string_appendn, string_prependn): Take a size_t

[PATCH v2] builtins: rs6000: Add builtins for fegetround, feclearexcept and feraiseexcept [PR94193]

2020-09-04 Thread Raoni Fassina Firmino via Gcc-patches
Changes since v1[1]: - Fixed english spelling; - Fixed code-style; - Changed match operand predicate in feclearexcept and feraiseexcept; - Changed testcase options; - Minor changes in test code to be C90 compatible; - Other minor changes sugested by Segher; - Changed subject line tag

Re: [PATCH 3/4 v3] ivopts: Consider cost_step on different forms during unrolling

2020-09-04 Thread Kewen.Lin via Gcc-patches
Hi Segher, on 2020/9/4 下午10:16, Segher Boessenkool wrote: > Hi! > > On Fri, Sep 04, 2020 at 04:47:37PM +0800, Kewen.Lin wrote: Apart from that, one P9 specific point is that the update form load isn't preferred, the reason is that the instruction can not retire until both parts

Re: [PATCH] rs6000: Add builtins for fegetround, feclearexcept and feraiseexcept [PR94193]

2020-09-04 Thread Raoni Fassina Firmino via Gcc-patches
Hi, I am about to sent a v2, but thought to reply here as well. On Tue, Aug 18, 2020 at 07:09:21PM -0500, Segher Boessenkool wrote: > Hi! > > On Fri, Aug 14, 2020 at 07:54:23PM -0300, Raoni Fassina Firmino via > Gcc-patches wrote: > > So, this patch adds new rs6000 expand optimizations for

Re: PING [Patch][Middle-end]Add -fzero-call-used-regs=[skip|used-gpr|all-gpr|used|all]

2020-09-04 Thread Segher Boessenkool
On Thu, Sep 03, 2020 at 10:13:35AM -0700, Kees Cook wrote: > On Thu, Sep 03, 2020 at 09:29:54AM -0500, Qing Zhao wrote: > > On average, all the options starting with “used_…” (i.e, only the > > registers that are used in the routine will be zeroed) have very low > > runtime overheads, at most

Re: [PATCH] vec: remove unreachable code

2020-09-04 Thread Kewen.Lin via Gcc-patches
Hi Andrea, on 2020/9/4 下午8:11, Andrea Corallo wrote: > Hi all, > > just a small patch removing a piece of unreachable code in > 'vect_estimate_min_profitable_iters' given the condition > (LOOP_VINFO_USING_PARTIAL_VECTORS_P (loop_vinfo)) is always true as > checked just above. > FWIW, I had

Re: PING [Patch][Middle-end]Add -fzero-call-used-regs=[skip|used-gpr|all-gpr|used|all]

2020-09-04 Thread Segher Boessenkool
On Mon, Aug 24, 2020 at 03:43:11PM -0500, Qing Zhao wrote: > > On Aug 24, 2020, at 3:20 PM, Segher Boessenkool > > wrote: > >> For this testing? (Is CPU2017 good enough)? > > > > I would use something more real-life, not 12 small pieces of code. > > Then, what kind of real-life benchmark you

Re: PING [Patch][Middle-end]Add -fzero-call-used-regs=[skip|used-gpr|all-gpr|used|all]

2020-09-04 Thread Segher Boessenkool
Hi! On Mon, Aug 24, 2020 at 03:49:50PM -0500, Qing Zhao wrote: > > Do you want to do this before or after the epilogue code is generated? > > static rtx_insn * > make_epilogue_seq (void) > { > if (!targetm.have_epilogue ()) > return NULL; > > start_sequence (); > emit_note

Re: [RFC] enable flags-unchanging asms, add_overflow/expand/combine woes

2020-09-04 Thread Segher Boessenkool
On Thu, Sep 03, 2020 at 04:46:43PM -0300, Alexandre Oliva wrote: > On Sep 3, 2020, Segher Boessenkool wrote: > > The idea is that none of them will need adjustment. This hook runs > > before the "none" code will run, and it can just clear all clobbers > > then. > > Uhh... That's not how asm

Re: [RFC] enable flags-unchanging asms, add_overflow/expand/combine woes

2020-09-04 Thread Segher Boessenkool
Hi! On Thu, Sep 03, 2020 at 04:31:35PM -0300, Alexandre Oliva wrote: > Except when it doesn't ;-) Heh. PRs welcome :-) > Under: > > /* If the actions of the earlier insns must be kept > in addition to substituting them into the latest one, > we must make a new PARALLEL for the

Re: [PATCH, rs6000] Fix Vector long long subtype (PR96139)

2020-09-04 Thread will schmidt via Gcc-patches
On Fri, 2020-09-04 at 03:47 -0500, Segher Boessenkool wrote: > Hi! > > On Fri, Sep 04, 2020 at 08:55:43AM +0200, Richard Biener wrote: > > On Thu, Sep 3, 2020 at 8:10 PM Segher Boessenkool > > wrote: > > > On Thu, Sep 03, 2020 at 10:37:33AM -0500, will schmidt wrote: > > > > On Wed, 2020-09-02

Re: PING [Patch][Middle-end]Add -fzero-call-used-regs=[skip|used-gpr|all-gpr|used|all]

2020-09-04 Thread Qing Zhao via Gcc-patches
> On Sep 3, 2020, at 8:23 PM, Rodriguez Bahena, Victor > wrote: > > > > -Original Message- > From: Qing Zhao mailto:qing.z...@oracle.com>> > Date: Thursday, September 3, 2020 at 12:55 PM > To: Kees Cook mailto:keesc...@chromium.org>> > Cc: Segher Boessenkool

Re: [PATCH 3/4 v3] ivopts: Consider cost_step on different forms during unrolling

2020-09-04 Thread Segher Boessenkool
Hi! On Fri, Sep 04, 2020 at 04:47:37PM +0800, Kewen.Lin wrote: > >> Apart from that, one P9 specific point is that the update form load isn't > >> preferred, the reason is that the instruction can not retire until both > >> parts complete, it can hold up subsequent instructions from retiring. >

Re: [PATCH] Enable GCC support for AMX

2020-09-04 Thread Kirill Yukhin via Gcc-patches
Hello, On 03 сен 08:17, H.J. Lu wrote: > On Thu, Sep 3, 2020 at 8:08 AM Kirill Yukhin via Gcc-patches > wrote: > > > > Hello, > > > > On 06 июл 09:58, Hongyu Wang via Gcc-patches wrote: > > > Hi: > > > > > > This patch is about to support Intel Advanced Matrix Extensions (AMX) > > > which will

Re: [PATCH 3/4 v3] ivopts: Consider cost_step on different forms during unrolling

2020-09-04 Thread Segher Boessenkool
Hi Bin, On Fri, Sep 04, 2020 at 04:27:32PM +0800, Bin.Cheng wrote: > On Fri, Sep 4, 2020 at 6:37 AM Segher Boessenkool > wrote: > > It should have cost, certainly, but not address_cost I think. The total > > cost of an ldu should be a tiny bit less than that of ld + that of addi; > > the

[PATCH] code generate live lanes in basic-block vectorization

2020-09-04 Thread Richard Biener
The following adds the capability to code-generate live lanes in basic-block vectorization using lane extracts from vector stmts rather than keeping the original scalar code around for those. This eventually makes previously not profitable vectorizations profitable (the live scalar code was

Re: ubsan: d-demangle.c:214 signed integer overflow

2020-09-04 Thread Alan Modra via Gcc-patches
So this one is on top of the previously posted patch. * d-demangle.c (string_need): Take a size_t n arg, and use size_t tem. (string_append): Use size_t n. (string_appendn, string_prependn): Take a size_t n arg. (TEMPLATE_LENGTH_UNKNOWN): Define as -1UL. *

Re: [wwwdocs PATCH] projects/tree-ssa: add note for deprecated flag -ftree-vectorizer-verbose in vectorization.html

2020-09-04 Thread Richard Biener via Gcc-patches
On Fri, Sep 4, 2020 at 11:32 AM Hu, Jiangping wrote: > > > I think the pages under gcc.gnu.org/projects/ are all hopelessly > > out-of-date and more recent (but still usually out-of-date) info > > is found on the wiki. > > > > So I'm not sure these kind of changes make sense. > > > > Eventually

Re: [PATCH] libgcc: Expose the current instruction pointer in SEH _Unwind_Backtrace

2020-09-04 Thread Martin Storsjö
On Tue, 1 Sep 2020, Martin Storsjö wrote: Previously, the SEH version of _Unwind_Backtrace did unwind the stack and call the provided callback function as intended, but there was little the caller could do within the callback to actually get any info about that particular level in the unwind.

Re: [PATCH] gcc: Make strchr return value pointers const

2020-09-04 Thread Martin Storsjö
Hi, On Fri, 4 Sep 2020, Jakub Jelinek wrote: On Tue, Sep 01, 2020 at 04:01:42PM +0300, Martin Storsjö wrote: This fixes compilation of codepaths for dos-like filesystems with Clang. When built with clang, it treats C input files as C++ when the compiler driver is invoked in C++ mode,

[PATCH] tree-optimization/96920 - another ICE when vectorizing nested cycles

2020-09-04 Thread Richard Biener
This refines the previous fix for PR96698 by re-doing how and where we arrange for setting vectorized cycle PHI backedge values. Bootstrapped on x86_64-unknown-linux-gnu, testing in progress. Richard. 2020-09-04 Richard Biener PR tree-optimization/96698 PR

Re: [PATCH] vec: remove unreachable code

2020-09-04 Thread Andrea Corallo
Richard Biener writes: > On Fri, 4 Sep 2020, Andrea Corallo wrote: > >> Hi all, >> >> just a small patch removing a piece of unreachable code in >> 'vect_estimate_min_profitable_iters' given the condition >> (LOOP_VINFO_USING_PARTIAL_VECTORS_P (loop_vinfo)) is always true as >> checked just

Re: [PATCH] vec: remove unreachable code

2020-09-04 Thread Richard Biener
On Fri, 4 Sep 2020, Andrea Corallo wrote: > Hi all, > > just a small patch removing a piece of unreachable code in > 'vect_estimate_min_profitable_iters' given the condition > (LOOP_VINFO_USING_PARTIAL_VECTORS_P (loop_vinfo)) is always true as > checked just above. > > Bootstrapped on

[PATCH] vec: remove unreachable code

2020-09-04 Thread Andrea Corallo
Hi all, just a small patch removing a piece of unreachable code in 'vect_estimate_min_profitable_iters' given the condition (LOOP_VINFO_USING_PARTIAL_VECTORS_P (loop_vinfo)) is always true as checked just above. Bootstrapped on aarch64-unknown-linux-gnu. Okay for trunk? Andrea >From

Re: ubsan: d-demangle.c:214 signed integer overflow

2020-09-04 Thread Iain Buclaw via Gcc-patches
Excerpts from Alan Modra's message of September 4, 2020 2:59 am: > On Thu, Sep 03, 2020 at 11:02:50PM +0200, Iain Buclaw wrote: >> Excerpts from Alan Modra's message of September 3, 2020 3:01 pm: >> > Running the libiberty testsuite >> > ./test-demangle < libiberty/testsuite/d-demangle-expected >>

Re: [PATCH] arm: Improve immediate generation for thumb-1 with -mpurecode [PR96769]

2020-09-04 Thread Richard Earnshaw
On 03/09/2020 09:24, Christophe Lyon via Gcc-patches wrote: > This patch moves the move-immediate splitter after the regular ones so > that it has lower precedence, and updates its constraints. > > For > int f3 (void) { return 0x1100; } > int f3_2 (void) { return 0x12345678; } > > we now

Re: [patch] PR tree-optimization/96818 - cast label range to type of switch operand

2020-09-04 Thread Aldy Hernandez via Gcc-patches
template class GTY((user)) int_range : public irange { so people can use int_range x; and get the max range by default? Indeed, I had forgotten about default template arguments, the only problem is int_range x; is valid in c++17, but previous to that we have to do int_range<> x; Its a

Re: [PATCH] rs6000: Expand vec_insert in expander instead of gimple [PR79251]

2020-09-04 Thread Segher Boessenkool
Hi! On Fri, Sep 04, 2020 at 05:18:49PM +0800, luoxhu wrote: > On 2020/9/4 15:23, Richard Biener wrote: > > On Fri, Sep 4, 2020 at 9:19 AM Richard Biener > > wrote: > >> On Fri, Sep 4, 2020 at 8:38 AM luoxhu wrote: > >>> On 2020/9/4 14:16, luoxhu via Gcc-patches wrote: > Another problem is

[PATCH] tree-optimization/96931 - clear ctrl-altering flag more aggressively

2020-09-04 Thread Richard Biener
The testcase shows that we fail to clear gimple_call_ctrl_altering_p when the last abnormal edge goes away, causing an edge insert to a loop header edge when we have preheaders to split the edge unnecessarily. The following addresses this by more aggressively clearing the flag in

Re: [PATCH] lto: Remove stream_input_location_now

2020-09-04 Thread Richard Biener
On Fri, 4 Sep 2020, Jakub Jelinek wrote: > Hi! > > As discussed yesterday, stream_input_location_now has been used in 3 > remaining places. For ERT_MUST_NOT_THROW, I believe the failure_loc > location is stable at least until the apply_cache after the bbs are all > read, and the locations do

Re: [PATCH] gcc: Make strchr return value pointers const

2020-09-04 Thread Jakub Jelinek via Gcc-patches
On Tue, Sep 01, 2020 at 04:01:42PM +0300, Martin Storsjö wrote: > This fixes compilation of codepaths for dos-like filesystems > with Clang. When built with clang, it treats C input files as C++ > when the compiler driver is invoked in C++ mode, triggering errors > when the return value of

Re: [PATCH] lto: Ensure we force a change for file/line/column after clear_line_info

2020-09-04 Thread Richard Biener
On Fri, 4 Sep 2020, Jakub Jelinek wrote: > Hi! > > As discussed yesterday: > On the streamer out side, we call clear_line_info > in multiple spots which resets the current_* values to something, but on the > reader side, we don't have corresponding resets in the same location, just > have > the

RE: [wwwdocs PATCH] projects/tree-ssa: add note for deprecated flag -ftree-vectorizer-verbose in vectorization.html

2020-09-04 Thread Hu, Jiangping
> I think the pages under gcc.gnu.org/projects/ are all hopelessly > out-of-date and more recent (but still usually out-of-date) info > is found on the wiki. > > So I'm not sure these kind of changes make sense. > > Eventually we should remove those pages? Or do we want > to keep them for

Re: [PATCH] gcc: Make strchr return value pointers const

2020-09-04 Thread JonY via Gcc-patches
On 9/1/20 1:01 PM, Martin Storsjö wrote: > This fixes compilation of codepaths for dos-like filesystems > with Clang. When built with clang, it treats C input files as C++ > when the compiler driver is invoked in C++ mode, triggering errors > when the return value of strchr() on a pointer to const

Re: [PATCH] rs6000: Expand vec_insert in expander instead of gimple [PR79251]

2020-09-04 Thread luoxhu via Gcc-patches
On 2020/9/4 15:23, Richard Biener wrote: > On Fri, Sep 4, 2020 at 9:19 AM Richard Biener > wrote: >> >> On Fri, Sep 4, 2020 at 8:38 AM luoxhu wrote: >>> >>> >>> >>> On 2020/9/4 14:16, luoxhu via Gcc-patches wrote: Hi, Yes, I checked and found that both vec_set and

[PATCH] lto: Remove stream_input_location_now

2020-09-04 Thread Jakub Jelinek via Gcc-patches
Hi! As discussed yesterday, stream_input_location_now has been used in 3 remaining places. For ERT_MUST_NOT_THROW, I believe the failure_loc location is stable at least until the apply_cache after the bbs are all read, and the locations do not include BLOCK, so we can use normal

Re: [PATCH, rs6000] Fix Vector long long subtype (PR96139)

2020-09-04 Thread Segher Boessenkool
Hi! On Fri, Sep 04, 2020 at 08:55:43AM +0200, Richard Biener wrote: > On Thu, Sep 3, 2020 at 8:10 PM Segher Boessenkool > wrote: > > On Thu, Sep 03, 2020 at 10:37:33AM -0500, will schmidt wrote: > > > On Wed, 2020-09-02 at 05:13 -0500, Segher Boessenkool wrote: > > > > On Tue, Sep 01, 2020 at

Re: [PATCH 3/4 v3] ivopts: Consider cost_step on different forms during unrolling

2020-09-04 Thread Kewen.Lin via Gcc-patches
Hi Segher, >> Good question! I agree that they can execute in parallel, but it depends >> on how we interprete the addressing cost, if it's for required execution >> resource, I think it's off, since comparing with ld, the ldu has two iops >> and extra ALU requirement. > > OTOH, if you do not

[PATCH] lto: Ensure we force a change for file/line/column after clear_line_info

2020-09-04 Thread Jakub Jelinek via Gcc-patches
Hi! As discussed yesterday: On the streamer out side, we call clear_line_info in multiple spots which resets the current_* values to something, but on the reader side, we don't have corresponding resets in the same location, just have the stream_* static variables that keep the current values

Re: [PATCH] --enable-link-serialization support

2020-09-04 Thread Jakub Jelinek via Gcc-patches
Hi! CCing build maintainers now. On Thu, Sep 03, 2020 at 04:49:09PM +0200, Jakub Jelinek via Gcc-patches wrote: > On Thu, Sep 03, 2020 at 03:53:35PM +0200, Richard Biener wrote: > > No review on the actual patch - it looks like what I'd have tried > > but I'm no make expert ;) Successfully

Re: [PATCH 3/4 v3] ivopts: Consider cost_step on different forms during unrolling

2020-09-04 Thread Bin.Cheng via Gcc-patches
On Fri, Sep 4, 2020 at 6:37 AM Segher Boessenkool wrote: > > On Thu, Sep 03, 2020 at 10:24:21AM +0800, Kewen.Lin wrote: > > on 2020/9/2 下午6:25, Segher Boessenkool wrote: > > > On Wed, Sep 02, 2020 at 11:16:00AM +0800, Kewen.Lin wrote: > > >> on 2020/9/1 上午3:41, Segher Boessenkool wrote: > > >>>

Re: [PATCH] bpf: generate indirect calls for xBPF

2020-09-04 Thread Jose E. Marchesi via Gcc-patches
Hi David. > This patch updates the BPF back end to generate indirect calls via > the 'call %reg' instruction when targetting xBPF. > > Additionally, the BPF ASM_SPEC is updated to pass along -mxbpf to > gas, where it is now supported. Thanks for the patch. I just installed it on your behalf.

[PATCH] Fortran : ICE in build_field PR95614

2020-09-04 Thread Mark Eggleston
Please find attached a fix for PR95614.  The original patch was by Steve Kargl. The original patch resulted in name clashes between global identifiers naming common blocks and local identifiers.  According to the 2018 standard 19.3.1 Classes of local identifiers, item 2, a local identifier

Re: [PATCH] rs6000: Expand vec_insert in expander instead of gimple [PR79251]

2020-09-04 Thread Richard Biener via Gcc-patches
On Fri, Sep 4, 2020 at 9:19 AM Richard Biener wrote: > > On Fri, Sep 4, 2020 at 8:38 AM luoxhu wrote: > > > > > > > > On 2020/9/4 14:16, luoxhu via Gcc-patches wrote: > > > Hi, > > > > > > > > > Yes, I checked and found that both vec_set and vec_extract doesn't support > > > variable index for

Re: [PATCH] rs6000: Expand vec_insert in expander instead of gimple [PR79251]

2020-09-04 Thread Richard Biener via Gcc-patches
On Fri, Sep 4, 2020 at 8:38 AM luoxhu wrote: > > > > On 2020/9/4 14:16, luoxhu via Gcc-patches wrote: > > Hi, > > > > > > Yes, I checked and found that both vec_set and vec_extract doesn't support > > variable index for most targets, store_bit_field_1 and extract_bit_field_1 > > would only

Re: [wwwdocs PATCH] projects/tree-ssa: add note for deprecated flag -ftree-vectorizer-verbose in vectorization.html

2020-09-04 Thread Richard Biener via Gcc-patches
On Fri, Sep 4, 2020 at 8:33 AM Hu Jiangping wrote: > > Although vectorization.html is not up-to-date, it is still > easy to be searched, and the deprecated flag in it may > confuse users. This patch simply adds a note to the head > of the page, hoping to help users who read it. > > OK for

Re: [PATCH, rs6000] Fix Vector long long subtype (PR96139)

2020-09-04 Thread Richard Biener via Gcc-patches
On Thu, Sep 3, 2020 at 8:10 PM Segher Boessenkool wrote: > > Hi! > > On Thu, Sep 03, 2020 at 10:37:33AM -0500, will schmidt wrote: > > On Wed, 2020-09-02 at 05:13 -0500, Segher Boessenkool wrote: > > > On Tue, Sep 01, 2020 at 09:00:20PM -0500, will schmidt wrote: > > > > This corrects an issue

Re: [PATCH] rs6000: Expand vec_insert in expander instead of gimple [PR79251]

2020-09-04 Thread luoxhu via Gcc-patches
On 2020/9/4 14:16, luoxhu via Gcc-patches wrote: Hi, Yes, I checked and found that both vec_set and vec_extract doesn't support variable index for most targets, store_bit_field_1 and extract_bit_field_1 would only consider use optabs when index is integer value. Anyway, it shouldn't be

[wwwdocs PATCH] projects/tree-ssa: add note for deprecated flag -ftree-vectorizer-verbose in vectorization.html

2020-09-04 Thread Hu Jiangping
Although vectorization.html is not up-to-date, it is still easy to be searched, and the deprecated flag in it may confuse users. This patch simply adds a note to the head of the page, hoping to help users who read it. OK for master? Regards! Hujp ---

Re: [PATCH] rs6000: Expand vec_insert in expander instead of gimple [PR79251]

2020-09-04 Thread luoxhu via Gcc-patches
Hi, On 2020/9/3 18:29, Richard Biener wrote: > On Thu, Sep 3, 2020 at 11:20 AM luoxhu wrote: >> >> >> >> On 2020/9/2 17:30, Richard Biener wrote: so maybe bypass convert_vector_to_array_for_subscript for special circumstance like "i = v[n%4]" or "v[n&3]=i" to generate vec_extract

Re: [PATCH] Fix ICE in ipa-cp due to cost addition overflow (PR 96806)

2020-09-04 Thread Feng Xue OS via Gcc-patches
>> Hi, >> >> On Mon, Aug 31 2020, Feng Xue OS wrote: >> > This patch is to fix a bug that cost that is used to evaluate clone >> > candidate >> > becomes negative due to integer overflow. >> > >> > Feng >> > --- >> > 2020-08-31 Feng Xue >> > >> > gcc/ >> > PR tree-optimization/96806 >>