summaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
-rw-r--r--compile.c49
1 files changed, 49 insertions, 0 deletions
@@ -3430,6 +3430,32 @@ iseq_peephole_optimize(rb_iseq_t *iseq, LINK_ELEMENT *list, const int do_tailcal
}
/*
* newarray 0
* send <calldata!mid:freeze, argc:0, ARGS_SIMPLE>, nil
* =>
@@ -3452,6 +3478,29 @@ iseq_peephole_optimize(rb_iseq_t *iseq, LINK_ELEMENT *list, const int do_tailcal
}
}
if (IS_INSN_ID(iobj, branchif) ||
IS_INSN_ID(iobj, branchnil) ||
IS_INSN_ID(iobj, branchunless)) {