Re: [PATCH, ARM] Keep constants in register when expanding

2014-08-13 Thread Zhenqiang Chen
On 12 August 2014 17:24, Richard Earnshaw wrote: > On 05/08/14 10:31, Zhenqiang Chen wrote: >> Hi, >> >> For some large constants, ARM will split them during expanding, which >> makes impossible to hoist them out the loop or shared by different >> references (refer the test case in the patch). >>

Re: [PATCH, ARM] Keep constants in register when expanding

2014-08-12 Thread Richard Earnshaw
On 05/08/14 10:31, Zhenqiang Chen wrote: > Hi, > > For some large constants, ARM will split them during expanding, which > makes impossible to hoist them out the loop or shared by different > references (refer the test case in the patch). > > The patch keeps some constants in registers. If the co

Re: [PATCH, ARM] Keep constants in register when expanding

2014-08-11 Thread Zhenqiang Chen
On 11 August 2014 19:14, Ramana Radhakrishnan wrote: > On Mon, Aug 11, 2014 at 3:35 AM, Zhenqiang Chen > wrote: >> On 8 August 2014 23:22, Ramana Radhakrishnan >> wrote: >>> On Tue, Aug 5, 2014 at 10:31 AM, Zhenqiang Chen >>> wrote: Hi, For some large constants, ARM will split t

Re: [PATCH, ARM] Keep constants in register when expanding

2014-08-11 Thread Ramana Radhakrishnan
On Mon, Aug 11, 2014 at 3:35 AM, Zhenqiang Chen wrote: > On 8 August 2014 23:22, Ramana Radhakrishnan > wrote: >> On Tue, Aug 5, 2014 at 10:31 AM, Zhenqiang Chen >> wrote: >>> Hi, >>> >>> For some large constants, ARM will split them during expanding, which >>> makes impossible to hoist them ou

Re: [PATCH, ARM] Keep constants in register when expanding

2014-08-10 Thread Zhenqiang Chen
On 8 August 2014 23:22, Ramana Radhakrishnan wrote: > On Tue, Aug 5, 2014 at 10:31 AM, Zhenqiang Chen > wrote: >> Hi, >> >> For some large constants, ARM will split them during expanding, which >> makes impossible to hoist them out the loop or shared by different >> references (refer the test cas

Re: [PATCH, ARM] Keep constants in register when expanding

2014-08-08 Thread Ramana Radhakrishnan
On Tue, Aug 5, 2014 at 10:31 AM, Zhenqiang Chen wrote: > Hi, > > For some large constants, ARM will split them during expanding, which > makes impossible to hoist them out the loop or shared by different > references (refer the test case in the patch). > > The patch keeps some constants in registe

[PATCH, ARM] Keep constants in register when expanding

2014-08-05 Thread Zhenqiang Chen
Hi, For some large constants, ARM will split them during expanding, which makes impossible to hoist them out the loop or shared by different references (refer the test case in the patch). The patch keeps some constants in registers. If the constant can not be optimized, the cprop and combine pass