Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Commit f97ed5f

Browse files
author
Reini Urban
committed
iter: set iter type in the compiler already
and not at runtime at each loop header. This changes the optrees for the B tests a bit. extract peep_leaveloop helper. add loop aelem_u oob optims for shaped arrays and const ranges: my @A[5]; print $a[$_] for (0..4);
1 parent 9355183 commit f97ed5f

File tree

4 files changed

+186
-133
lines changed

4 files changed

+186
-133
lines changed

ext/B/t/f_map.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ checkOptree(note => q{},
166166
# d <#> gv[*_] s
167167
# e <1> rv2gv sKRM/1
168168
# f <{> enteriter(next->q last->t redo->g) KS/DEF
169-
# r <0> iter s
169+
# r <0> iter_ary s
170170
# s <|> and(other->g) K/1
171171
# g <;> nextstate(main 475 (eval 10):1) v:{
172172
# h <#> gvsv[*_] s
@@ -199,7 +199,7 @@ EOT_EOT
199199
# d <$> gv(*_) s
200200
# e <1> rv2gv sKRM/1
201201
# f <{> enteriter(next->q last->t redo->g) KS/DEF
202-
# r <0> iter s
202+
# r <0> iter_ary s
203203
# s <|> and(other->g) K/1
204204
# g <;> nextstate(main 559 (eval 15):1) v:{
205205
# h <$> gvsv(*_) s

0 commit comments

Comments
 (0)