Re: [Cython] Constant folding

2011-06-10 Thread Robert Bradshaw
On Fri, Jun 10, 2011 at 8:22 AM, Vitja Makarov wrote: > Hi! > > When CF is there it is possible to improve constant folding. Do you have some examples? I can see that a = 1.0 b = sin(a) could now be optimized, but I don't see that being a common pattern. (Also, if a is typed, gcc is lik

[Cython] Constant folding

2011-06-10 Thread Vitja Makarov
Hi! When CF is there it is possible to improve constant folding. Some NameNode references could be easily replaced by appropriate ConstNode. Could that help GCC to produce faster code? -- vitja. ___ cython-devel mailing list cython-devel@python.org ht