Skip to content

Commit 194e85a

Browse files
author
Shale Xiong
committed
[gen] Remove the insert edge limitation in cycle.ml.
1 parent 6dfcba6 commit 194e85a

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

gen/cycle.ml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -761,13 +761,7 @@ let remove_store n0 =
761761
m.evt <- { m.evt with dir=Some d; atom=a; rmw=rmw}
762762
end else
763763
begin
764-
let p = find_non_pseudo_prev m.prev
765-
and n = find_non_pseudo m.next in
766-
(* eprintf "[%a] in [%a]..[%a]\n" debug_node m debug_node p debug_node n ; *)
767-
if not (E.is_ext p.edge || E.is_ext n.edge) then begin
768-
Warn.fatal "Insert pseudo edge %s appears in-between %s..%s (at least one neighbour must be an external edge)"
769-
(E.pp_edge m.edge) (E.pp_edge p.edge) (E.pp_edge n.edge)
770-
end;
764+
let p = find_non_pseudo_prev m.prev in
771765
match p.edge.E.edge with
772766
| (E.Rf Ext | E.Fr Ext) ->
773767
Warn.fatal "Insert pseudo edge %s appears after external communication edge %s"

0 commit comments

Comments
 (0)