We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c346dcc commit a046845Copy full SHA for a046845
backend/comballoc.ml
@@ -75,6 +75,15 @@ let rec combine i allocstate =
75
let newnext = combine_restart i.next in
76
(instr_cons_debug i.desc i.arg i.res i.dbg newnext,
77
allocstate)
78
+ | Iop(Ibeginregion|Iendregion) -> begin
79
+ match allocstate with
80
+ | Pending_alloc { mode = Alloc_local; _ } ->
81
+ let newnext = combine_restart i.next in
82
+ (instr_cons_debug i.desc i.arg i.res i.dbg newnext, allocstate)
83
+ | No_alloc | Pending_alloc { mode = Alloc_heap; _ } ->
84
+ let newnext, s' = combine i.next allocstate in
85
+ (instr_cons_debug i.desc i.arg i.res i.dbg newnext, s')
86
+ end
87
| Iop _ ->
88
let (newnext, s') = combine i.next allocstate in
89
(instr_cons_debug i.desc i.arg i.res i.dbg newnext, s')
0 commit comments