Re: [PR middle-end/70359] uncoalesce IVs outside of loops

2018-03-28 Thread Richard Biener
On Wed, Mar 28, 2018 at 1:37 PM, Richard Biener wrote: > On Tue, Mar 20, 2018 at 2:36 PM, Richard Biener > wrote: >> On Mon, Mar 19, 2018 at 6:08 PM, Aldy Hernandez wrote: >>> Hi Richard. >>> >>> As discussed in the PR, the problem here is that we have two different >>> iterations of an IV live

Re: [PR middle-end/70359] uncoalesce IVs outside of loops

2018-03-28 Thread Richard Biener
On Tue, Mar 20, 2018 at 2:36 PM, Richard Biener wrote: > On Mon, Mar 19, 2018 at 6:08 PM, Aldy Hernandez wrote: >> Hi Richard. >> >> As discussed in the PR, the problem here is that we have two different >> iterations of an IV live outside of a loop. This inhibits us from using >> autoinc/dec ad

Re: [PR middle-end/70359] uncoalesce IVs outside of loops

2018-03-21 Thread Richard Biener
On Tue, Mar 20, 2018 at 7:15 PM, Bin.Cheng wrote: > On Tue, Mar 20, 2018 at 5:56 PM, Richard Biener > wrote: >> On March 20, 2018 6:11:53 PM GMT+01:00, "Bin.Cheng" >> wrote: >>>On Mon, Mar 19, 2018 at 5:08 PM, Aldy Hernandez >>>wrote: Hi Richard. As discussed in the PR, the prob

Re: [PR middle-end/70359] uncoalesce IVs outside of loops

2018-03-20 Thread Bin.Cheng
On Tue, Mar 20, 2018 at 5:56 PM, Richard Biener wrote: > On March 20, 2018 6:11:53 PM GMT+01:00, "Bin.Cheng" > wrote: >>On Mon, Mar 19, 2018 at 5:08 PM, Aldy Hernandez >>wrote: >>> Hi Richard. >>> >>> As discussed in the PR, the problem here is that we have two >>different >>> iterations of an

Re: [PR middle-end/70359] uncoalesce IVs outside of loops

2018-03-20 Thread Richard Biener
On March 20, 2018 6:11:53 PM GMT+01:00, "Bin.Cheng" wrote: >On Mon, Mar 19, 2018 at 5:08 PM, Aldy Hernandez >wrote: >> Hi Richard. >> >> As discussed in the PR, the problem here is that we have two >different >> iterations of an IV live outside of a loop. This inhibits us from >using >> autoinc

Re: [PR middle-end/70359] uncoalesce IVs outside of loops

2018-03-20 Thread Bin.Cheng
On Mon, Mar 19, 2018 at 5:08 PM, Aldy Hernandez wrote: > Hi Richard. > > As discussed in the PR, the problem here is that we have two different > iterations of an IV live outside of a loop. This inhibits us from using > autoinc/dec addressing on ARM, and causes extra lea's on x86. > > An abbrevia

Re: [PR middle-end/70359] uncoalesce IVs outside of loops

2018-03-20 Thread Richard Biener
On Mon, Mar 19, 2018 at 6:08 PM, Aldy Hernandez wrote: > Hi Richard. > > As discussed in the PR, the problem here is that we have two different > iterations of an IV live outside of a loop. This inhibits us from using > autoinc/dec addressing on ARM, and causes extra lea's on x86. > > An abbrevia

[PR middle-end/70359] uncoalesce IVs outside of loops

2018-03-19 Thread Aldy Hernandez
Hi Richard. As discussed in the PR, the problem here is that we have two different iterations of an IV live outside of a loop. This inhibits us from using autoinc/dec addressing on ARM, and causes extra lea's on x86. An abbreviated example is this: loop: # p_9 = PHI p_20 = p_9 + 184467