This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
AELEMFASTLEX_STORE - support negative keys, skip unnecessary check
authorRichard Leach <richardleach@users.noreply.github.com>
Wed, 21 Sep 2022 20:46:18 +0000 (20:46 +0000)
committerRichard Leach <richardleach@users.noreply.github.com>
Sat, 22 Oct 2022 14:28:36 +0000 (15:28 +0100)
commit9e99fbb3940bfab6ce2638107363e928bcca917a
tree031cfd9a2eb75b416082dc6a7f6378f7cd21e9a4
parentcd0eaede3642d9d687128d1ad1a699d94a1088e8
AELEMFASTLEX_STORE - support negative keys, skip unnecessary check

This commit:
* Adds support for negative keys, as per the original AELEMFAST_LEX
* Changes an if() check for a "useless assignment to a temporary" into
  an assert, since this condition should never be true when the LHS is
  the result of an array fetch.
peep.c
pp_hot.c
t/perf/opcount.t