@@ -619,11 +619,13 @@ let rec unbox_float dbg =
619
619
map_tail ~kind: Any
620
620
(function
621
621
| Cop (Capply (_ , Rc_close_at_apply), _ , _ ) -> raise Exit
622
+ | Ctail e -> Ctail (unbox_float dbg e)
622
623
| e -> unbox_float dbg e)
623
624
e
624
625
with
625
626
| e -> Cregion e
626
627
| exception Exit -> Cop (Cload (Double , Immutable ), [cmm], dbg))
628
+ | Ctail e -> Ctail (unbox_float dbg e)
627
629
| cmm -> Cop (Cload (Double , Immutable ), [cmm], dbg)
628
630
)
629
631
@@ -1307,11 +1309,13 @@ let rec unbox_int dbg bi =
1307
1309
map_tail ~kind: Any
1308
1310
(function
1309
1311
| Cop (Capply (_ , Rc_close_at_apply), _ , _ ) -> raise Exit
1312
+ | Ctail e -> Ctail (unbox_int dbg bi e)
1310
1313
| e -> unbox_int dbg bi e)
1311
1314
e
1312
1315
with
1313
1316
| e -> Cregion e
1314
1317
| exception Exit -> default cmm)
1318
+ | Ctail e -> Ctail (unbox_int dbg bi e)
1315
1319
| cmm ->
1316
1320
default cmm
1317
1321
)
@@ -2014,15 +2018,15 @@ let has_local_allocs e =
2014
2018
let rec loop = function
2015
2019
| Cregion e ->
2016
2020
(* Local allocations within a nested region do not affect this region,
2017
- except inside a Cexclave block *)
2021
+ except inside a Ctail block *)
2018
2022
loop_until_tail e
2019
2023
| Cop (Calloc Alloc_local , _, _)
2020
2024
| Cop ((Cextcall _ | Capply _ ), _ , _ ) ->
2021
2025
raise Exit
2022
2026
| e ->
2023
2027
iter_shallow loop e
2024
2028
and loop_until_tail = function
2025
- | Cexclave e -> loop e
2029
+ | Ctail e -> loop e
2026
2030
| Cregion _ -> ()
2027
2031
| e -> ignore (iter_shallow_tail loop_until_tail e)
2028
2032
in
@@ -2032,13 +2036,13 @@ let has_local_allocs e =
2032
2036
2033
2037
let remove_region_tail e =
2034
2038
let rec has_tail = function
2035
- | Cexclave _
2039
+ | Ctail _
2036
2040
| Cop (Capply(_ , Rc_close_at_apply), _ , _ ) -> raise Exit
2037
2041
| Cregion _ -> ()
2038
2042
| e -> ignore (iter_shallow_tail has_tail e)
2039
2043
in
2040
2044
let rec remove_tail = function
2041
- | Cexclave e -> e
2045
+ | Ctail e -> e
2042
2046
| Cop (Capply(mach , Rc_close_at_apply), args , dbg ) ->
2043
2047
Cop (Capply (mach, Rc_normal ), args, dbg)
2044
2048
| Cregion _ as e -> e
0 commit comments