Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: df946eb74f31ec8dbb08dd52843e02050b2fff8e
      
https://github.com/Perl/perl5/commit/df946eb74f31ec8dbb08dd52843e02050b2fff8e
  Author: Richard Leach <[email protected]>
  Date:   2026-07-29 (Wed, 29 Jul 2026)

  Changed paths:
    M op.c
    M t/op/ref.t

  Log Message:
  -----------
  OP_REF_CMP - don't apply to a TARGMY reftype

OP_REF_CMP does not currently support the TARGMY optimization, so should
not replace an OP that has already had it applied.

GH#24630 provided an example of this happening, along the lines of:

    my $bool = ( ($r = reftype($x)) eq 'HASH' or $r eq 'ARRAY' );

Where the assignment into `$r` is via TARGMY on the `reftype`.



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications

Reply via email to