Skip to content

Commit 339aac2

Browse files
hvdsnwc10
authored andcommitted
Avoid redundant reload of PL_op in the runloop.
(gcc, at least, generates suboptimal code without this dirty great hint)
1 parent f410a21 commit 339aac2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

run.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ int
3737
Perl_runops_standard(pTHX)
3838
{
3939
dVAR;
40-
while ((PL_op = CALL_FPTR(PL_op->op_ppaddr)(aTHX))) {
40+
register OP *op = PL_op;
41+
while ((PL_op = op = CALL_FPTR(op->op_ppaddr)(aTHX))) {
4142
}
4243

4344
TAINT_NOT;

0 commit comments

Comments
 (0)