From: Nicholas Clark Date: Sat, 24 Dec 2005 14:48:42 +0000 (+0000) Subject: Unless the peephole optimiser already knows that we're in void context, X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=de3370bc7b91fa6f0f1f71c18926bc94bdc83114;p=p5sagit%2Fp5-mst-13.2.git Unless the peephole optimiser already knows that we're in void context, avoid even attempting the whole proxy constant sub copying optimisation. p4raw-id: //depot/perl@26482 --- diff --git a/op.c b/op.c index eebaf67..cb9b0e6 100644 --- a/op.c +++ b/op.c @@ -7319,6 +7319,10 @@ Perl_peep(pTHX_ register OP *o) o->op_opt = 1; + + if ((o->op_flags && OPf_WANT) != OPf_WANT_VOID) + break; + if ((o->op_private & ~OPpASSIGN_BACKWARDS) != 2) break;