develooper Front page | perl.perl5.porters | Postings from July 2001

Re: [PATCH] Turn off constant folding and optimization

Thread Previous | Thread Next
Gurusamy Sarathy
July 24, 2001 11:46
Re: [PATCH] Turn off constant folding and optimization
Message ID:
On Tue, 24 Jul 2001 09:19:31 +0200, Arthur Bergman wrote:
>If PL_no_optimize is true, then we won't move the constants to the pad and
>that is where we expect to find them! Maybe we should move the constants to
>the pad earlier? 
>Sarathy, why wait until peep to move consts to the pad?

IIRC, doing it earlier messed up some cases involving constants where the
constants ended up in the wrong pad.

I think disabling all of peep() is probably the wrong approach to disabling
optimizations, because peep() has always done things that aren't optimizations.
It needs to be more fine-grained than peep() (only certain branches of
peep(), maybe).


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About