Skip to content

Commit

Permalink
Fix R#1990
Browse files Browse the repository at this point in the history
Zoffix++, in #1990, pointed
out that there's an optimization opportunity in optimize_nameless_call
where the, faster, p6store op can be used instead when assigning
@ and % sigiled variables
  • Loading branch information
Jan-Olof Hendig committed Jul 2, 2018
1 parent 72ccd43 commit ecd899c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Perl6/Optimizer.nqp
Original file line number Diff line number Diff line change
Expand Up @@ -1916,6 +1916,9 @@ class Perl6::Optimizer {
elsif $sigil eq '$' {
$assignop := 'assign';
}
elsif $sigil eq '@' || $sigil eq '%' {
$assignop := 'p6store';
}
else {
# TODO support @ and % sigils and check what else we need
# to "copy" from assign_op in Actions
Expand Down

0 comments on commit ecd899c

Please sign in to comment.