Skip to content

Commit 1358834

Browse files
committed
Remove special case not needed post-NFG.
This will regress a couple of tests until we bump to an NFG-supporting MoarVM.
1 parent db2fdbb commit 1358834

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/vm/moar/QAST/QASTRegexCompilerMAST.nqp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -426,14 +426,6 @@ class QAST::MASTRegexCompiler {
426426
nqp::push(@ins, op('const_i64', $i0, ival($cclass)));
427427
nqp::push(@ins, op('iscclass', $i0, $i0, %!reg<tgt>, %!reg<pos>));
428428
nqp::push(@ins, op($testop, $i0, %!reg<fail>));
429-
430-
if $cclass == nqp::const::CCLASS_NEWLINE && $node.subtype ne 'zerowidth' {
431-
my $s0 := $!regalloc.fresh_s();
432-
nqp::push(@ins, op('const_s', $s0, sval("\r\n")));
433-
nqp::push(@ins, op('eqat_s', $i0, %!reg<tgt>, $s0, %!reg<pos>));
434-
nqp::push(@ins, op('add_i', %!reg<pos>, %!reg<pos>, $i0));
435-
$!regalloc.release_register($s0, $MVM_reg_str);
436-
}
437429
}
438430

439431
nqp::push(@ins, op('inc_i', %!reg<pos>)) unless $node.subtype eq 'zerowidth';

0 commit comments

Comments
 (0)