Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
remove useless condition, BenGoldberg++
  • Loading branch information
FROGGS committed Oct 13, 2013
1 parent fad34d4 commit 6aba3c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vm/moar/QAST/QASTRegexCompilerMAST.nqp
Expand Up @@ -574,7 +574,7 @@ class QAST::MASTRegexCompiler {
}
if $max > 1 {
my $maxreg := fresh_i();
nqp::push(@ins, op('const_i64', $maxreg, ival($max))) if $max > 1;
nqp::push(@ins, op('const_i64', $maxreg, ival($max)));
nqp::push(@ins, op('ge_i', $ireg, $rep, $maxreg));
nqp::push(@ins, op('if_i', $ireg, $donelabel));
release($maxreg, $MVM_reg_int64);
Expand All @@ -593,7 +593,7 @@ class QAST::MASTRegexCompiler {
nqp::push(@ins, op('inc_i', $rep));
if $max > 1 {
my $maxreg := fresh_i();
nqp::push(@ins, op('const_i64', $maxreg, ival($max))) if $max > 1;
nqp::push(@ins, op('const_i64', $maxreg, ival($max)));
nqp::push(@ins, op('ge_i', $ireg, $rep, $maxreg));
nqp::push(@ins, op('if_i', $ireg, $donelabel));
release($maxreg, $MVM_reg_int64);
Expand Down

0 comments on commit 6aba3c2

Please sign in to comment.