develooper Front page | perl.perl5.porters | Postings from August 2010

Re: [perl #76438] peephole optimiser could prune more dead code

Thread Previous | Thread Next
From:
Eric Brine
Date:
August 6, 2010 11:33
Subject:
Re: [perl #76438] peephole optimiser could prune more dead code
Message ID:
AANLkTi=JAfXTvjb_yAzFETf+Fc+8hse2eH-8=_RkzyCa@mail.gmail.com
n Fri, Aug 6, 2010 at 10:09 AM, Aristotle Pagaltzis <pagaltzis@gmx.de>wrote:

> * Eric Brine <ikegami@adaelis.com> [2010-07-12 06:55]:
> > On Sun, Jul 11, 2010 at 10:22 PM, David Golden <xdaveg@gmail.com> wrote:
> > > I'm suggesting that we disclaim any implicit guarantee that the
> > > compiler won't optimize away expressions that have side effects when
> > > evaluated.
> > >
> >
> > Without that guarantee,
> >
> > my $x = f()
> >    or DEBUG && warn(...);
> > return $x;
> >
> > would be buggy. Dunno if that matters
>
> Why?
>

Indeed. I made a booboo when I wrote that.

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About