Re: Failure to optimise (a/b) and (a%b) into single __aeabi_idivmod call

2013-06-06 Thread Kugan
On 05/06/13 21:27, Matthew Gretton-Dann wrote: Kugan, I don't have the source code to hand but how are the sin()/cos()->sincos() optimizations handled? Thanks Matt. There is a tree level pass to combine sin()/cos() into sincos(). Commit that added this is: http://gcc.gnu.org/viewcvs/gcc?view=r

Re: Failure to optimise (a/b) and (a%b) into single __aeabi_idivmod call

2013-06-06 Thread Mans Rullgard
On 6 June 2013 12:09, Kugan wrote: > On 05/06/13 21:27, Matthew Gretton-Dann wrote: >> >> Kugan, >> >> I don't have the source code to hand but how are the >> sin()/cos()->sincos() optimizations handled? > > Thanks Matt. There is a tree level pass to combine sin()/cos() into > sincos(). Commit tha

Re: Failure to optimise (a/b) and (a%b) into single __aeabi_idivmod call

2013-06-06 Thread Kugan
On 06/06/13 22:03, Mans Rullgard wrote: On 6 June 2013 12:09, Kugan wrote: On 05/06/13 21:27, Matthew Gretton-Dann wrote: Kugan, I don't have the source code to hand but how are the sin()/cos()->sincos() optimizations handled? Thanks Matt. There is a tree level pass to combine sin()/cos()