Re: [AArch64] Improve TLS Descriptor pattern to release RTL loop IV opt

2015-09-28 Thread Jiong Wang
Jiong Wang writes: > Andrew Pinski writes: > >> On Tue, Jul 28, 2015 at 6:12 AM, Jiong Wang wrote: >>> >>> The instruction sequences for preparing argument for TLS descriptor >>> runtime resolver and the later function call to resolver can actually be >>> hoisted out of the loop. >>> >>> Current

Re: [AArch64] Improve TLS Descriptor pattern to release RTL loop IV opt

2015-09-28 Thread Marcus Shawcroft
On 28 July 2015 at 14:12, Jiong Wang wrote: > > The instruction sequences for preparing argument for TLS descriptor > runtime resolver and the later function call to resolver can actually be > hoisted out of the loop. > > Currently we can't because we have exposed the hard register X0 as > destina

Re: [AArch64] Improve TLS Descriptor pattern to release RTL loop IV opt

2015-09-28 Thread Jiong Wang
Andrew Pinski writes: > On Tue, Jul 28, 2015 at 6:12 AM, Jiong Wang wrote: >> >> The instruction sequences for preparing argument for TLS descriptor >> runtime resolver and the later function call to resolver can actually be >> hoisted out of the loop. >> >> Currently we can't because we have ex

Re: [AArch64] Improve TLS Descriptor pattern to release RTL loop IV opt

2015-09-25 Thread Andrew Pinski
On Fri, Sep 25, 2015 at 11:40 PM, Andrew Pinski wrote: > On Tue, Jul 28, 2015 at 6:12 AM, Jiong Wang wrote: >> >> The instruction sequences for preparing argument for TLS descriptor >> runtime resolver and the later function call to resolver can actually be >> hoisted out of the loop. >> >> Curre

Re: [AArch64] Improve TLS Descriptor pattern to release RTL loop IV opt

2015-09-25 Thread Andrew Pinski
On Tue, Jul 28, 2015 at 6:12 AM, Jiong Wang wrote: > > The instruction sequences for preparing argument for TLS descriptor > runtime resolver and the later function call to resolver can actually be > hoisted out of the loop. > > Currently we can't because we have exposed the hard register X0 as >

Re: [COMMITTED][AArch64] Improve TLS Descriptor pattern to release RTL loop IV opt

2015-08-11 Thread Jiong Wang
Andreas Schwab writes: > Jiong Wang writes: > >> I Just finished several round of rebuild & testing on clean >> environment. > > How did you even manage to compile it? > > ../../gcc/ira.c: In function 'void print_translated_classes(FILE*, bool)': > ../../gcc/ira.c:1415:49: error: iteration 8

Re: [COMMITTED][AArch64] Improve TLS Descriptor pattern to release RTL loop IV opt

2015-08-11 Thread Jiong Wang
Andreas Schwab writes: > Jiong Wang writes: > >> I Just finished several round of rebuild & testing on clean >> environment. > > How did you even manage to compile it? > > ../../gcc/ira.c: In function 'void print_translated_classes(FILE*, bool)': > ../../gcc/ira.c:1415:49: error: iteration 8

Re: [COMMITTED][AArch64] Improve TLS Descriptor pattern to release RTL loop IV opt

2015-08-11 Thread Andreas Schwab
Jiong Wang writes: > I Just finished several round of rebuild & testing on clean > environment. How did you even manage to compile it? ../../gcc/ira.c: In function 'void print_translated_classes(FILE*, bool)': ../../gcc/ira.c:1415:49: error: iteration 8u invokes undefined behavior [-Werror

Re: [COMMITTED][AArch64] Improve TLS Descriptor pattern to release RTL loop IV opt

2015-08-10 Thread Jiong Wang
Andreas Schwab writes: > Jiong Wang writes: > >> Andreas Schwab writes: >> >>> Jiong Wang writes: >>> And I just finished two round of native aarch64 build/check w/wo my patch. >>> >>> Did you rebuild everything? >> >> No. > > Please do. Andreas, I Just finished several round of rebuil

Re: [COMMITTED][AArch64] Improve TLS Descriptor pattern to release RTL loop IV opt

2015-08-10 Thread Andreas Schwab
Jiong Wang writes: > Andreas Schwab writes: > >> Jiong Wang writes: >> >>> And I just finished two round of native aarch64 build/check w/wo my patch. >> >> Did you rebuild everything? > > No. Please do. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 94

Re: [COMMITTED][AArch64] Improve TLS Descriptor pattern to release RTL loop IV opt

2015-08-10 Thread Jiong Wang
Andreas Schwab writes: > Jiong Wang writes: > >> And I just finished two round of native aarch64 build/check w/wo my patch. > > Did you rebuild everything? No. Just applied the patch, then "make all" and re-check > > Andreas. -- Regards, Jiong

Re: [COMMITTED][AArch64] Improve TLS Descriptor pattern to release RTL loop IV opt

2015-08-10 Thread Andreas Schwab
Jiong Wang writes: > And I just finished two round of native aarch64 build/check w/wo my patch. Did you rebuild everything? Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

Re: [COMMITTED][AArch64] Improve TLS Descriptor pattern to release RTL loop IV opt

2015-08-10 Thread Jiong Wang
Jiong Wang writes: > Andreas Schwab writes: > >> Jiong Wang writes: >> >>> Index: gcc/ChangeLog >>> === >>> --- gcc/ChangeLog (revision 226682) >>> +++ gcc/ChangeLog (working copy) >>> @@ -1,3 +1,16 @@ >>> +2015-08-06Ramana

Re: [COMMITTED][AArch64] Improve TLS Descriptor pattern to release RTL loop IV opt

2015-08-10 Thread Jiong Wang
Andreas Schwab writes: > Jiong Wang writes: > >> Index: gcc/ChangeLog >> === >> --- gcc/ChangeLog(revision 226682) >> +++ gcc/ChangeLog(working copy) >> @@ -1,3 +1,16 @@ >> +2015-08-06Ramana Radhakrishnan >> +

Re: [COMMITTED][AArch64] Improve TLS Descriptor pattern to release RTL loop IV opt

2015-08-08 Thread Andreas Schwab
Jiong Wang writes: > Index: gcc/ChangeLog > === > --- gcc/ChangeLog (revision 226682) > +++ gcc/ChangeLog (working copy) > @@ -1,3 +1,16 @@ > +2015-08-06Ramana Radhakrishnan > + Jiong Wang > + > + * conf

[COMMITTED][AArch64] Improve TLS Descriptor pattern to release RTL loop IV opt

2015-08-06 Thread Jiong Wang
James Greenhalgh writes: > On Tue, Jul 28, 2015 at 02:12:36PM +0100, Jiong Wang wrote: >> >> The instruction sequences for preparing argument for TLS descriptor >> runtime resolver and the later function call to resolver can actually be >> hoisted out of the loop. >> >> Currently we can't becau

Re: [AArch64] Improve TLS Descriptor pattern to release RTL loop IV opt

2015-08-04 Thread James Greenhalgh
On Tue, Jul 28, 2015 at 02:12:36PM +0100, Jiong Wang wrote: > > The instruction sequences for preparing argument for TLS descriptor > runtime resolver and the later function call to resolver can actually be > hoisted out of the loop. > > Currently we can't because we have exposed the hard registe

[AArch64] Improve TLS Descriptor pattern to release RTL loop IV opt

2015-07-28 Thread Jiong Wang
The instruction sequences for preparing argument for TLS descriptor runtime resolver and the later function call to resolver can actually be hoisted out of the loop. Currently we can't because we have exposed the hard register X0 as destination of "set". While GCC's RTL data flow infrastructure