Re: Moving statements from one BB to other BB.

2008-04-18 Thread Richard Guenther
On Fri, Apr 18, 2008 at 9:34 AM, Sandeep Maram <[EMAIL PROTECTED]> wrote: > Hi, > > Consider the 2 for loops given below. > > for (i = 0; i < N ; i++) > { > a[i]= 1; > } > > for (i = 0; i < N ; i++) > { > j = j+a[i]; > } > > The headers of these 2 loops are bb_3, bb_

Re: Moving statements from one BB to other BB.

2008-04-18 Thread Sandeep Maram
Hi, Consider the 2 for loops given below. for (i = 0; i < N ; i++) { a[i]= 1; } for (i = 0; i < N ; i++) { j = j+a[i]; } The headers of these 2 loops are bb_3, bb_6 respectively. They are as follows. bb_3 (preds = {bb_4 bb_2 }, succs = {bb_4 bb_5 }) { : # a_

Re: Moving statements from one BB to other BB.

2008-04-17 Thread Sandeep Maram
On Thu, Apr 17, 2008 at 5:20 PM, Richard Guenther <[EMAIL PROTECTED]> wrote: > > On Thu, Apr 17, 2008 at 1:35 PM, Sandeep Maram <[EMAIL PROTECTED]> wrote: > > > > On Tue, Apr 15, 2008 at 3:00 PM, Richard Guenther > > <[EMAIL PROTECTED]> wrote: > > > > > > On Tue, Apr 15, 2008 at 7:49 AM, Sa

Re: Moving statements from one BB to other BB.

2008-04-17 Thread Richard Guenther
On Thu, Apr 17, 2008 at 1:35 PM, Sandeep Maram <[EMAIL PROTECTED]> wrote: > > On Tue, Apr 15, 2008 at 3:00 PM, Richard Guenther > <[EMAIL PROTECTED]> wrote: > > > > On Tue, Apr 15, 2008 at 7:49 AM, Sandeep Maram <[EMAIL PROTECTED]> wrote: > > > On Tue, Apr 15, 2008 at 10:34 AM, Daniel Berlin <

Re: Moving statements from one BB to other BB.

2008-04-17 Thread Sandeep Maram
On Tue, Apr 15, 2008 at 3:00 PM, Richard Guenther <[EMAIL PROTECTED]> wrote: > > On Tue, Apr 15, 2008 at 7:49 AM, Sandeep Maram <[EMAIL PROTECTED]> wrote: > > On Tue, Apr 15, 2008 at 10:34 AM, Daniel Berlin <[EMAIL PROTECTED]> wrote: > > > To clarify what Richard means, your assertion that "you

Re: Moving statements from one BB to other BB.

2008-04-17 Thread Sandeep Maram
On Tue, Apr 15, 2008 at 11:40 PM, Diego Novillo <[EMAIL PROTECTED]> wrote: > > On 4/15/08 1:34 PM, Zdenek Dvorak wrote: > > > Hi, > > > > > > > > > > > > To clarify what Richard means, your assertion that "you have > updated > > > > > SSA information" is false. > > > > > If you had updated the S

Re: Moving statements from one BB to other BB.

2008-04-15 Thread Diego Novillo
On 4/15/08 1:34 PM, Zdenek Dvorak wrote: Hi, > To clarify what Richard means, your assertion that "you have updated > SSA information" is false. > If you had updated the SSA information, the error would not occur :). > > How exactly are you updating the ssa information? > > The general w

Re: Moving statements from one BB to other BB.

2008-04-15 Thread Zdenek Dvorak
Hi, > > > To clarify what Richard means, your assertion that "you have updated > > > SSA information" is false. > > > If you had updated the SSA information, the error would not occur :). > > > > > > How exactly are you updating the ssa information? > > > > > > The general way to update SSA

Re: Moving statements from one BB to other BB.

2008-04-15 Thread Daniel Berlin
On Tue, Apr 15, 2008 at 8:05 AM, Zdenek Dvorak <[EMAIL PROTECTED]> wrote: > Hi, > > > > To clarify what Richard means, your assertion that "you have updated > > SSA information" is false. > > If you had updated the SSA information, the error would not occur :). > > > > How exactly are you upda

Re: Moving statements from one BB to other BB.

2008-04-15 Thread Zdenek Dvorak
Hi, > To clarify what Richard means, your assertion that "you have updated > SSA information" is false. > If you had updated the SSA information, the error would not occur :). > > How exactly are you updating the ssa information? > > The general way to update SSA for this case would be: > > For

Re: Moving statements from one BB to other BB.

2008-04-15 Thread Richard Guenther
On Tue, Apr 15, 2008 at 7:49 AM, Sandeep Maram <[EMAIL PROTECTED]> wrote: > On Tue, Apr 15, 2008 at 10:34 AM, Daniel Berlin <[EMAIL PROTECTED]> wrote: > > To clarify what Richard means, your assertion that "you have updated > > SSA information" is false. > > If you had updated the SSA informat

Re: Moving statements from one BB to other BB.

2008-04-14 Thread Sandeep Maram
On Tue, Apr 15, 2008 at 10:34 AM, Daniel Berlin <[EMAIL PROTECTED]> wrote: > To clarify what Richard means, your assertion that "you have updated > SSA information" is false. > If you had updated the SSA information, the error would not occur :). > > How exactly are you updating the ssa informat

Re: Moving statements from one BB to other BB.

2008-04-14 Thread Daniel Berlin
To clarify what Richard means, your assertion that "you have updated SSA information" is false. If you had updated the SSA information, the error would not occur :). How exactly are you updating the ssa information? The general way to update SSA for this case would be: For each statement you hav

Re: Moving statements from one BB to other BB.

2008-04-14 Thread Richard Guenther
On Mon, Apr 14, 2008 at 12:54 PM, Sandeep Maram <[EMAIL PROTECTED]> wrote: > Hi, > > I have transferred all the statements of one BB( header of one loop) > to another BB. After that I have updated SSA information too. > But I get this error- > > definition in block 6 does not dominate use in b

Moving statements from one BB to other BB.

2008-04-14 Thread Sandeep Maram
Hi, I have transferred all the statements of one BB( header of one loop) to another BB. After that I have updated SSA information too. But I get this error- definition in block 6 does not dominate use in block 3 for SSA_NAME: i_25 in statement: # VUSE D.1189_10 = a[i_25]; loop.c:8: internal com