Re: Minimize downward code motion during reassociation

2013-05-17 Thread Easwaran Raman
On Thu, Apr 25, 2013 at 4:42 AM, Richard Biener wrote: > On Fri, Dec 7, 2012 at 9:01 PM, Easwaran Raman wrote: >> It seems I need to reset the debug uses of a statement before moving >> the statement itself. The attached patch starts from the leaf to root >> of the tree to be reassociated and pla

Re: Minimize downward code motion during reassociation

2013-04-25 Thread Richard Biener
On Fri, Dec 7, 2012 at 9:01 PM, Easwaran Raman wrote: > It seems I need to reset the debug uses of a statement before moving > the statement itself. The attached patch starts from the leaf to root > of the tree to be reassociated and places them at the point where > their dependences will be met a

Re: Minimize downward code motion during reassociation

2013-04-24 Thread Easwaran Raman
I want to resend this patch for consideration. I applied the patch to trunk and confirmed that it bootstraps and doesn't cause test regressions. Is this ok for trunk? Thanks, Easwaran On Fri, Dec 7, 2012 at 12:01 PM, Easwaran Raman wrote: > It seems I need to reset the debug uses of a statement

Re: Minimize downward code motion during reassociation

2012-12-07 Thread Alexandre Oliva
On Dec 6, 2012, Richard Biener wrote: > On Tue, Nov 6, 2012 at 1:54 AM, Easwaran Raman wrote: >> I am unable to figure out the right way to handle the debug >> statements. What I tried was to find debug statements that use the SSA >> name defined by the statement I moved (using SSA_NAME_IMM_USE

Re: Minimize downward code motion during reassociation

2012-12-07 Thread Easwaran Raman
It seems I need to reset the debug uses of a statement before moving the statement itself. The attached patch starts from the leaf to root of the tree to be reassociated and places them at the point where their dependences will be met after reassociation. This bootstraps and I am running the tests.

Re: Minimize downward code motion during reassociation

2012-12-06 Thread Richard Biener
On Tue, Nov 6, 2012 at 1:54 AM, Easwaran Raman wrote: > I am unable to figure out the right way to handle the debug > statements. What I tried was to find debug statements that use the SSA > name defined by the statement I moved (using SSA_NAME_IMM_USE_NODE) > and then moved them as well at the ri

Re: Minimize downward code motion during reassociation

2012-11-05 Thread Easwaran Raman
I am unable to figure out the right way to handle the debug statements. What I tried was to find debug statements that use the SSA name defined by the statement I moved (using SSA_NAME_IMM_USE_NODE) and then moved them as well at the right place. Thus, if I have to move t1 = a + b down (after the d

Re: Minimize downward code motion during reassociation

2012-11-04 Thread Richard Biener
On Wed, Oct 31, 2012 at 8:16 PM, Easwaran Raman wrote: > On Wed, Oct 31, 2012 at 4:36 AM, Richard Biener > wrote: >> On Wed, Oct 24, 2012 at 4:02 AM, Easwaran Raman wrote: >>> On Tue, Oct 23, 2012 at 2:52 AM, Richard Biener >>> wrote: On Mon, Oct 22, 2012 at 8:31 PM, Easwaran Raman wrote:

Re: Minimize downward code motion during reassociation

2012-11-02 Thread Easwaran Raman
Ping. - Easwaran On Wed, Oct 31, 2012 at 12:16 PM, Easwaran Raman wrote: > On Wed, Oct 31, 2012 at 4:36 AM, Richard Biener > wrote: >> On Wed, Oct 24, 2012 at 4:02 AM, Easwaran Raman wrote: >>> On Tue, Oct 23, 2012 at 2:52 AM, Richard Biener >>> wrote: On Mon, Oct 22, 2012 at 8:31 PM, Ea

Re: Minimize downward code motion during reassociation

2012-10-31 Thread Easwaran Raman
On Wed, Oct 31, 2012 at 4:36 AM, Richard Biener wrote: > On Wed, Oct 24, 2012 at 4:02 AM, Easwaran Raman wrote: >> On Tue, Oct 23, 2012 at 2:52 AM, Richard Biener >> wrote: >>> On Mon, Oct 22, 2012 at 8:31 PM, Easwaran Raman wrote: On Mon, Oct 22, 2012 at 12:59 AM, Richard Biener wro

Re: Minimize downward code motion during reassociation

2012-10-31 Thread Richard Biener
On Wed, Oct 24, 2012 at 4:02 AM, Easwaran Raman wrote: > On Tue, Oct 23, 2012 at 2:52 AM, Richard Biener > wrote: >> On Mon, Oct 22, 2012 at 8:31 PM, Easwaran Raman wrote: >>> On Mon, Oct 22, 2012 at 12:59 AM, Richard Biener >>> wrote: On Fri, Oct 19, 2012 at 12:36 AM, Easwaran Raman wrot

Re: Minimize downward code motion during reassociation

2012-10-23 Thread Easwaran Raman
On Tue, Oct 23, 2012 at 2:52 AM, Richard Biener wrote: > On Mon, Oct 22, 2012 at 8:31 PM, Easwaran Raman wrote: >> On Mon, Oct 22, 2012 at 12:59 AM, Richard Biener >> wrote: >>> On Fri, Oct 19, 2012 at 12:36 AM, Easwaran Raman wrote: Hi, During expression reassociation, statement

Re: Minimize downward code motion during reassociation

2012-10-23 Thread Richard Biener
On Mon, Oct 22, 2012 at 8:31 PM, Easwaran Raman wrote: > On Mon, Oct 22, 2012 at 12:59 AM, Richard Biener > wrote: >> On Fri, Oct 19, 2012 at 12:36 AM, Easwaran Raman wrote: >>> Hi, >>> >>> During expression reassociation, statements are conservatively moved >>> downwards to ensure that dependen

Re: Minimize downward code motion during reassociation

2012-10-22 Thread Easwaran Raman
On Mon, Oct 22, 2012 at 12:59 AM, Richard Biener wrote: > On Fri, Oct 19, 2012 at 12:36 AM, Easwaran Raman wrote: >> Hi, >> >> During expression reassociation, statements are conservatively moved >> downwards to ensure that dependences are correctly satisfied after >> reassocation. This could lea

Re: Minimize downward code motion during reassociation

2012-10-22 Thread Richard Biener
On Fri, Oct 19, 2012 at 12:36 AM, Easwaran Raman wrote: > Hi, > > During expression reassociation, statements are conservatively moved > downwards to ensure that dependences are correctly satisfied after > reassocation. This could lead to lengthening of live ranges. This > patch moves statements o

Re: Minimize downward code motion during reassociation

2012-10-19 Thread Easwaran Raman
On Fri, Oct 19, 2012 at 5:13 PM, Xinliang David Li wrote: > On Thu, Oct 18, 2012 at 3:36 PM, Easwaran Raman wrote: >> Hi, >> >> During expression reassociation, statements are conservatively moved >> downwards to ensure that dependences are correctly satisfied after >> reassocation. This could le

Re: Minimize downward code motion during reassociation

2012-10-19 Thread Xinliang David Li
On Thu, Oct 18, 2012 at 3:36 PM, Easwaran Raman wrote: > Hi, > > During expression reassociation, statements are conservatively moved > downwards to ensure that dependences are correctly satisfied after > reassocation. This could lead to lengthening of live ranges. This > patch moves statements on

Minimize downward code motion during reassociation

2012-10-18 Thread Easwaran Raman
Hi, During expression reassociation, statements are conservatively moved downwards to ensure that dependences are correctly satisfied after reassocation. This could lead to lengthening of live ranges. This patch moves statements only to the extent necessary. Bootstraps and no test regression on x8