[PATCH v5] dse: Remove partial load after full store for high part access[PR71309]

2020-08-02 Thread luoxhu via Gcc-patches
Thanks, the v5 update as comments: 1. Move const_rhs shift out of loop; 2. Iterate from int size for read_mode. This patch could optimize(works for char/short/int/void*): 6: r119:TI=[r118:DI+0x10] 7: [r118:DI]=r119:TI 8: r121:DI=[r118:DI+0x8] => 6: r119:TI=[r118:DI+0x10] 16: r122:DI=r119:TI#

[committed] d: Merge upstream dmd c2274e56a (PR96250).

2020-08-02 Thread Iain Buclaw via Gcc-patches
Hi, This patch merges the D front-end implementation with upstream dmd c2274e56a, fixing a couple ICE bugs found in the front-end. 1. Fixes an ICE in the front-end if a struct symbol were to appear twice in the compilation unit. 2. Fixes a rejects-valid bug in the front-end where `(symbol)' was

Re: [PATCH wwwdocs] Explicitly list powerpc64le-unknown-linux-gnu as a primary platform

2020-08-02 Thread Florian Weimer via Gcc-patches
* Florian Weimer via Gcc-patches: > The intent was that this was implied by powerpc64-unknown-linux-gnu, > but this not very obvious because of the ELFv1 vs ELFv2 ABI > differences. > > --- > htdocs/gcc-10/criteria.html | 1 + > htdocs/gcc-11/criteria.html | 1 + > htdocs/gcc-9/criteria.html | 1

[PATCH] aarch64: Add A64FX machine model

2020-08-02 Thread Qian Jianhua
This patch add support for Fujitsu A64FX, as the first step of adding A64FX machine model. A64FX is used in FUJITSU Supercomputer PRIMEHPC FX1000, PRIMEHPC FX700, and supercomputer Fugaku. The official microarchitecture information of A64FX can be read at https://github.com/fujitsu/A64FX. Changel

RE: [PATCH PR94442] [AArch64] Redundant ldp/stp instructions emitted at -O3

2020-08-02 Thread xiezhiheng
> -Original Message- > From: Richard Sandiford [mailto:richard.sandif...@arm.com] > Sent: Friday, July 31, 2020 5:03 PM > To: xiezhiheng > Cc: Richard Biener ; gcc-patches@gcc.gnu.org > Subject: Re: [PATCH PR94442] [AArch64] Redundant ldp/stp instructions > emitted at -O3 > > xiezhiheng

Re: libgo patch committed: Update to go1.15rc1

2020-08-02 Thread Rainer Orth
Hi Ian, > This libgo patch updates the sources to the go1.15rc1 release > candidate. As usual, the changes for this update are too large to > include in an e-mail message. I've just included the highlights and > changes to GCC-specific files below. Bootstrapped and ran Go > testsuite on x86_64-

Re: [PATCH] var-tracking: fix uninitialised use of 'in_pending' [PR96404]

2020-08-02 Thread Richard Biener
On August 2, 2020 1:17:20 PM GMT+02:00, Sergei Trofimovich wrote: >From: Sergei Trofimovich > >r11-2447-g:1212cfad093 ("Improve var-tracking dataflow >iteration order") changed 'in_pending' initialization >from: > >in_pending = sbitmap_alloc (last_basic_block_for_fn (cfun)); >bitmap_ones

[testsuite] Test case for PR rtl-optimization/60473

2020-08-02 Thread Roger Sayle
PR rtl-optimization/60473 was a code quality regression that has been cured by improvements to register allocation. For the function in the test case, GCC 4.4, 4.5 and 4.6 generated very poor code requiring two mov instructions: foo:rdtsc mov rcx, rax mov ra

Fix remove_predictions_associated_with_edge

2020-08-02 Thread Jan Hubicka
Hi, remove_predictions_associated_with_edge currently calls filter_predicitons passing it equal_edge_p. Becase filter_predictions removes all edges where filter returns false, the function does exact oposite. Fixed thus. Bootstrapped/regtested x86_64-linux. gcc/ChangeLog: 2020-08-02 Jan Hubicka

[PATCH] var-tracking: fix uninitialised use of 'in_pending' [PR96404]

2020-08-02 Thread Sergei Trofimovich via Gcc-patches
From: Sergei Trofimovich r11-2447-g:1212cfad093 ("Improve var-tracking dataflow iteration order") changed 'in_pending' initialization from: in_pending = sbitmap_alloc (last_basic_block_for_fn (cfun)); bitmap_ones (in_pending); to more complex partial bit population algorithm. Due to pre

[PATCH] PR rtl-optimization 61494: Preserve x-0.0 with HONOR_SNANS.

2020-08-02 Thread Roger Sayle
The following patch avoids simplifying x-0.0 to x when -fsignaling-nans is specified, which resolves PR rtl-optimization 61494. Indeed, running the test program attached to that PR now reports no failures. Alas reducing that validation program to a portable test for the GCC testsuite is a challe

[PATCH] PR rtl-optimization 61494: Preserve x-0.0 with HONOR_SNANS.

2020-08-02 Thread Roger Sayle
The following patch avoids simplifying x-0.0 to x when -fsignaling-nans is specified, which resolves PR rtl-optimization 61494. Indeed, running the test program attached to that PR now reports no failures. Alas reducing that validation program to a portable test for the GCC testsuite is a challe

Re: libgo patch committed: Update to go1.15rc1

2020-08-02 Thread Andreas Schwab
This breaks ia64-linux. According to arch/ia64/kernel/syscalls/syscall.tbl, the getrandom syscall is 315 and copy_file_range is 323. ../../../libgo/go/internal/syscall/unix/copy_file_range_linux.go:13:42: error: reference to undefined name 'copyFileRangeTrap' 13 | r1, _, errno := sysc