On 6 June 2013 12:09, Kugan <kugan.vivekanandara...@linaro.org> 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 that added this is: > http://gcc.gnu.org/viewcvs/gcc?view=revision&revision=121052. We can try > doing same thing similar here. > > Is there anyway we can know in the tree level that the target does not > define integer divide?
Some targets, e.g. MIPS, have a combined div/mod instruction. Those could benefit from this as well, unless they already achieve that optimisation differently. -- Mans Rullgard / mru _______________________________________________ linaro-toolchain mailing list linaro-toolchain@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-toolchain