Skip to content

pp_hot.c: shave off some CPU instructions in pp_const() #23215

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: blead
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion pp_hot.c
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,9 @@ Perl_rpp_free_2_(pTHX_ SV *const sv1, SV *const sv2,

PP(pp_const)
{
rpp_xpush_1(cSVOP_sv);
rpp_extend(1); /* Keep together all PL_op derefs (cSVOP_sv/NORMAL) */
SV* sv = cSVOP_sv; /* in this hot pp op. stack_grow() is a function. */
rpp_push_1(sv); /* Previously rpp_xpush_1(). */
return NORMAL;
}

Expand Down
Loading