Skip to content

Commit

Permalink
Simplify conditional
Browse files Browse the repository at this point in the history
No code behaviour change (other than removal of duplicated check)
  • Loading branch information
zoffixznet committed Sep 26, 2017
1 parent 8be3eb8 commit 36f0ab4
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/Perl6/Optimizer.nqp
Expand Up @@ -1332,11 +1332,10 @@ class Perl6::Optimizer {

# Calls are especially interesting as we may wish to do some
# kind of inlining.
elsif $optype eq 'call' && $op.name ne '' {
my $opt_result := self.optimize_call($op);
return $opt_result if $opt_result;
} elsif $optype eq 'call' && $op.name eq '' {
my $opt_result := self.optimize_nameless_call($op);
elsif $optype eq 'call' {
my $opt_result := $op.name eq ''
?? self.optimize_nameless_call($op)
!! self.optimize_call($op);
return $opt_result if $opt_result;
}

Expand Down

0 comments on commit 36f0ab4

Please sign in to comment.