summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2014-09-27 14:15:50 -0700
committerFather Chrysostomos <sprout@cpan.org>2014-10-10 21:57:15 -0700
commit9846cd95ba14e2441e8c1057547316e3a62ca855 (patch)
tree2c1bbbfcbae991b87e97b543c99ee1c868a565a9
parent5f94141d59f532c32f6d4fe11724316757ab822e (diff)
downloadperl-9846cd95ba14e2441e8c1057547316e3a62ca855.tar.gz
pp.c: Some branch prediction hints
-rw-r--r--pp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pp.c b/pp.c
index b3a001dc0d..8f55a70b92 100644
--- a/pp.c
+++ b/pp.c
@@ -6248,7 +6248,7 @@ PP(pp_lvref)
SV * const arg = PL_op->op_flags & OPf_STACKED ? POPs : NULL;
sv_magic(ret, arg,
PERL_MAGIC_lvref, (char *)elem, elem ? HEf_SVKEY : ARGTARG);
- if (PL_op->op_private & OPpLVAL_INTRO) {
+ if (UNLIKELY(PL_op->op_private & OPpLVAL_INTRO)) {
if (elem) {
MAGIC *mg;
HV *stash;
@@ -6277,7 +6277,7 @@ PP(pp_lvrefslice)
const bool localizing = PL_op->op_private & OPpLVAL_INTRO;
bool can_preserve = FALSE;
- if (localizing) {
+ if (UNLIKELY(localizing)) {
MAGIC *mg;
HV *stash;
SV **svp;