compiler.cfg.critical-edges: reset RPO
parent
cf90945b4c
commit
d2b158c8e4
|
@ -11,9 +11,11 @@ IN: compiler.cfg.critical-edges
|
||||||
f <simple-block> insert-basic-block ;
|
f <simple-block> insert-basic-block ;
|
||||||
|
|
||||||
: split-critical-edges ( cfg -- )
|
: split-critical-edges ( cfg -- )
|
||||||
[
|
dup [
|
||||||
dup successors>> [
|
dup successors>> [
|
||||||
2dup critical-edge?
|
2dup critical-edge?
|
||||||
[ split-critical-edge ] [ 2drop ] if
|
[ split-critical-edge ] [ 2drop ] if
|
||||||
] with each
|
] with each
|
||||||
] each-basic-block ;
|
] each-basic-block
|
||||||
|
cfg-changed
|
||||||
|
drop ;
|
Loading…
Reference in New Issue