[Cython] Bug in Cython producing incorrect C code
markflorisson88 at gmail.com
Thu Jan 26 20:41:03 CET 2012
On 26 January 2012 19:27, Stefan Behnel <stefan_ml at behnel.de> wrote:
> mark florisson, 26.01.2012 20:15:
>> On 26 January 2012 18:53, Stefan Behnel wrote:
>>> mark florisson, 26.01.2012 16:20:
>>>> I think this problem can trivially be solved by creating a ProxyNode
>>>> that should never be replaced by any transform, but it's argument may
>>>> be replaced. So you wrap self.rhs in a ProxyNode and use that to
>>>> create your CloneNodes.
>>> I can't see what a ProxyNode would do that a CloneNode shouldn't do anyway.
>> It wouldn't be a replacement, merely an addition (an extra indirection).
> What I was trying to say was that a ProxyNode would always be required by a
> CloneNode, but I don't see where a ProxyNode would be needed outside of a
> CloneNode. So it seems rather redundant and I don't know if we need a
> separate node for it.
Yes it would be needed only for that, but I think the only real
alternative is to not use CloneNode at all, i.e. make the
transformation Dag mentioned, where you create new rhs (NameNode?)
references to the temporary result.
> cython-devel mailing list
> cython-devel at python.org
More information about the cython-devel