Re: Loop fusion in gcc

2023-09-23 Thread Richard Biener via Gcc
On Sat, Sep 23, 2023 at 2:54 PM Hanke Zhang via Gcc wrote: > > Hi, I have been very interested in loop fusion recently. I found that > both LLVM and icc have implemented this optimization. I also noticed > that gcc does not seem to implement it. > > I would like to ask if gcc have any plans to imp

Re: Loop fusion.

2018-04-24 Thread Toon Moene
On 04/24/2018 09:18 AM, Richard Biener wrote: On Mon, Apr 23, 2018 at 8:35 PM, Toon Moene wrote: On 04/23/2018 01:00 PM, Richard Biener wrote: Note that while it looks "obvious" in the above source fragment the IL that is presented to optimizers may make things a lot less "low-hanging".

Re: Loop fusion.

2018-04-24 Thread Richard Biener
On Mon, Apr 23, 2018 at 8:35 PM, Toon Moene wrote: > On 04/23/2018 01:00 PM, Richard Biener wrote: > >> On Sun, Apr 22, 2018 at 4:27 PM, Toon Moene wrote: >>> >>> A few days ago there was a rant on the Fortran Standardization >>> Committee's >>> e-mail list about Fortran's "whole array arithmetic

Re: Loop fusion.

2018-04-23 Thread Toon Moene
On 04/23/2018 01:00 PM, Richard Biener wrote: On Sun, Apr 22, 2018 at 4:27 PM, Toon Moene wrote: A few days ago there was a rant on the Fortran Standardization Committee's e-mail list about Fortran's "whole array arithmetic" being unoptimizable. An example picked at random from our weather fo

Re: Loop fusion.

2018-04-23 Thread Richard Biener
On Mon, Apr 23, 2018 at 2:31 PM, Janne Blomqvist wrote: > On Mon, Apr 23, 2018 at 2:02 PM, Richard Biener > wrote: >> >> On Mon, Apr 23, 2018 at 12:59 PM, Bin.Cheng wrote: >> > On Sun, Apr 22, 2018 at 3:27 PM, Toon Moene wrote: >> >> A few days ago there was a rant on the Fortran Standardizatio

Re: Loop fusion.

2018-04-23 Thread Janne Blomqvist
On Mon, Apr 23, 2018 at 2:02 PM, Richard Biener wrote: > On Mon, Apr 23, 2018 at 12:59 PM, Bin.Cheng wrote: > > On Sun, Apr 22, 2018 at 3:27 PM, Toon Moene wrote: > >> A few days ago there was a rant on the Fortran Standardization > Committee's > >> e-mail list about Fortran's "whole array arit

Re: Loop fusion.

2018-04-23 Thread Richard Biener
On Mon, Apr 23, 2018 at 12:59 PM, Bin.Cheng wrote: > On Sun, Apr 22, 2018 at 3:27 PM, Toon Moene wrote: >> A few days ago there was a rant on the Fortran Standardization Committee's >> e-mail list about Fortran's "whole array arithmetic" being unoptimizable. >> >> An example picked at random from

Re: Loop fusion.

2018-04-23 Thread Richard Biener
On Sun, Apr 22, 2018 at 4:27 PM, Toon Moene wrote: > A few days ago there was a rant on the Fortran Standardization Committee's > e-mail list about Fortran's "whole array arithmetic" being unoptimizable. > > An example picked at random from our weather forecasting code: > > ZQICE(1:NPROMA,1:NF

Re: Loop fusion.

2018-04-23 Thread Bin.Cheng
On Sun, Apr 22, 2018 at 3:27 PM, Toon Moene wrote: > A few days ago there was a rant on the Fortran Standardization Committee's > e-mail list about Fortran's "whole array arithmetic" being unoptimizable. > > An example picked at random from our weather forecasting code: > > ZQICE(1:NPROMA,1:NF

Re: Loop fusion.

2015-04-23 Thread Richard Biener
On Wed, Apr 22, 2015 at 10:05 PM, Toon Moene wrote: > On 04/22/2015 09:10 PM, Steven Bosscher wrote: > >> On Wed, Apr 22, 2015 at 6:59 PM, Toon Moene wrote: > > >>> Why is loop fusion important, especially in Fortran 90 and later programs >>> ? >>> >>> Because without it, every array assignment is

Re: Loop fusion.

2015-04-22 Thread Toon Moene
On 04/22/2015 09:10 PM, Steven Bosscher wrote: On Wed, Apr 22, 2015 at 6:59 PM, Toon Moene wrote: Why is loop fusion important, especially in Fortran 90 and later programs ? Because without it, every array assignment is a single loop nest, isolated from related, same-shape assignments. Why

Re: Loop fusion.

2015-04-22 Thread Steven Bosscher
On Wed, Apr 22, 2015 at 6:59 PM, Toon Moene wrote: > Why is loop fusion important, especially in Fortran 90 and later programs ? > > Because without it, every array assignment is a single loop nest, isolated > from related, same-shape assignments. Why is this a bad thing? When you're talking about