Re: [fpc-devel] (patch) An attempt to improve assignments/functionresult reuse

2007-12-16 Thread Florian Klaempfl
Sergei Gorelkin schrieb: Florian Klaempfl wrote: Help me, why do we need dfa :)? I am not sure that we need the particular DFA from optdfa.pas, but something to reduce conservativeness of escape analysis is definitely needed. Otherwise, temps that are needed for just one particular case of

Re: [fpc-devel] (patch) An attempt to improve assignments/functionresult reuse

2007-12-16 Thread Jonas Maebe
On 16 Dec 2007, at 10:12, Florian Klaempfl wrote: Sergei Gorelkin schrieb: I am not sure that we need the particular DFA from optdfa.pas, but something to reduce conservativeness of escape analysis is definitely needed. Otherwise, temps that are needed for just one particular case of

Re: [fpc-devel] (patch) An attempt to improve assignments/functionresult reuse

2007-12-16 Thread Florian Klaempfl
Jonas Maebe schrieb: On 16 Dec 2007, at 10:12, Florian Klaempfl wrote: Sergei Gorelkin schrieb: I am not sure that we need the particular DFA from optdfa.pas, but something to reduce conservativeness of escape analysis is definitely needed. Otherwise, temps that are needed for just one

Re: [fpc-devel] (patch) An attempt to improve assignments/functionresult reuse

2007-12-16 Thread Jonas Maebe
On 16 Dec 2007, at 11:13, Florian Klaempfl wrote: Jonas Maebe schrieb: On 16 Dec 2007, at 10:12, Florian Klaempfl wrote: Sergei Gorelkin schrieb: I am not sure that we need the particular DFA from optdfa.pas, but something to reduce conservativeness of escape analysis is definitely

Re: [fpc-devel] (patch) An attempt to improve assignments/functionresult reuse

2007-12-15 Thread Sergei Gorelkin
Sergei Gorelkin wrote: Florian Klaempfl wrote: Ok, so I guess we can change this. Anybody volunteer to implement it :)? Well, if there is no hard time schedule imposed on this, I can try. I've started all this, after all :) I had investigated the issue. Surprisingly enough, changing

Re: [fpc-devel] (patch) An attempt to improve assignments/functionresult reuse

2007-12-15 Thread Florian Klaempfl
Sergei Gorelkin schrieb: Sergei Gorelkin wrote: Florian Klaempfl wrote: Ok, so I guess we can change this. Anybody volunteer to implement it :)? Well, if there is no hard time schedule imposed on this, I can try. I've started all this, after all :) I had investigated the issue.

Re: [fpc-devel] (patch) An attempt to improve assignments/functionresult reuse

2007-12-15 Thread Sergei Gorelkin
Florian Klaempfl wrote: Help me, why do we need dfa :)? I am not sure that we need the particular DFA from optdfa.pas, but something to reduce conservativeness of escape analysis is definitely needed. Otherwise, temps that are needed for just one particular case of x:=f(x) are being

Re: [fpc-devel] (patch) An attempt to improve assignments/functionresult reuse

2007-12-12 Thread Florian Klaempfl
Thorsten Engler schrieb: Are you sure with the strings? Yes. Any function that returns a string is supplied with one more argument than it was declared. After calling the function, register eax (which is used to contain the non-parameter result) is not used. Here is a simple example: I'am

Re: [fpc-devel] (patch) An attempt to improve assignments/functionresult reuse

2007-12-12 Thread Sergei Gorelkin
Florian Klaempfl wrote: Ok, so I guess we can change this. Anybody volunteer to implement it :)? Well, if there is no hard time schedule imposed on this, I can try. I've started all this, after all :) Sergei ___ fpc-devel maillist -

RE: [fpc-devel] (patch) An attempt to improve assignments/functionresult reuse

2007-12-08 Thread Thorsten Engler
Are you sure with the strings? Yes. Any function that returns a string is supplied with one more argument than it was declared. After calling the function, register eax (which is used to contain the non-parameter result) is not used. Here is a simple example: I'am not sure but