Skip to content

Commit 6f35e16

Browse files
committed
Store instruction id sequence in CFG.
1 parent c986bea commit 6f35e16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/regalloc/regalloc_rewrite.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ let prelude :
375375
let critical_edges = compute_critical_edges cfg in
376376
if not (Cfg_edge.Set.is_empty critical_edges)
377377
then (
378-
let instruction_id = assert false in
378+
let instruction_id = (Cfg_with_infos.cfg cfg_with_infos).instruction_id in
379379
Cfg_edge.Set.iter
380380
(fun { Cfg_edge.src; dst } ->
381381
let (_inserted_blocks : Cfg.basic_block list) =

0 commit comments

Comments
 (0)