summaryrefslogtreecommitdiff
path: root/regen/op_private
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2014-12-29 06:13:48 -0800
committerFather Chrysostomos <sprout@cpan.org>2014-12-29 22:03:29 -0800
commitd1455c67c18c86ad9bd01ee14c61c0eb3fe6a483 (patch)
treec0c4db4f52a7cb35df684b901ad8409a7ee712dd /regen/op_private
parent215c5139cb98a8536a622f8aaace5a0b808475a7 (diff)
downloadperl-d1455c67c18c86ad9bd01ee14c61c0eb3fe6a483.tar.gz
Enable OPpTARGET_MY optimisation for cmp/<=>
We can only do it for <=> under ‘use integer’. The non-integer <=> will push undef on to the stack. Enabling the optimisation for it would cause \($lexical = $x <=> "nan") to leave $lexical with its previous value and return a reference to &PL_sv_undef.
Diffstat (limited to 'regen/op_private')
-rw-r--r--regen/op_private2
1 files changed, 1 insertions, 1 deletions
diff --git a/regen/op_private b/regen/op_private
index 4b7c42522e..68286a6d48 100644
--- a/regen/op_private
+++ b/regen/op_private
@@ -327,7 +327,7 @@ addbits($_, 7 => qw(OPpLVAL_INTRO LVINTRO))
# Only the code paths that handle scalar rvalue context matter. If dTARG
# or RETPUSHNO occurs only in list or lvalue paths, T is safe.
#
-# lt and friends do SETs (including ncmp, but not scmp)
+# lt and friends do SETs (including ncmp, but not scmp or i_ncmp)
#
# Additional mode of failure: the opcode can modify TARG before it "used"
# all the arguments (or may call an external function which does the same).