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 8f807fc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Perl6/Optimizer.nqp
Expand Up @@ -1916,6 +1916,12 @@ class Perl6::Optimizer {
elsif $sigil eq '$' {
$assignop := 'assign';
}
elsif $sigil eq '@' {
$assignop := 'p6store';
}
elsif $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 8f807fc

Please sign in to comment.