From: Hugo van der Sanden Date: Thu, 15 Apr 2010 12:05:38 +0000 (+0100) Subject: Avoid redundant reload of PL_op in the runloop. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=339aac22c2768aa840858c042e33fbf04d4f51ed;p=p5sagit%2Fp5-mst-13.2.git Avoid redundant reload of PL_op in the runloop. (gcc, at least, generates suboptimal code without this dirty great hint) --- diff --git a/run.c b/run.c index 20c711a..eb465da 100644 --- a/run.c +++ b/run.c @@ -37,7 +37,8 @@ int Perl_runops_standard(pTHX) { dVAR; - while ((PL_op = CALL_FPTR(PL_op->op_ppaddr)(aTHX))) { + register OP *op = PL_op; + while ((PL_op = op = CALL_FPTR(op->op_ppaddr)(aTHX))) { } TAINT_NOT;