tmp
authoryu.dongliang <18588496441@163.com>
Tue, 31 Oct 2023 17:24:40 +0000 (01:24 +0800)
committeryu.dongliang <18588496441@163.com>
Tue, 31 Oct 2023 17:24:40 +0000 (01:24 +0800)
ses_layout.c

index 1dd9df3be0a443d35d414d909c45e309071f6447..bf2e0e1363b8e1ff4598bbe9896204e9f2031ad9 100644 (file)
@@ -1281,9 +1281,16 @@ int ses_layout_function(ScfEfunction* f, int d)
 
        __ses_de_cross(f, d);
 
+       __ses_setc_xy(f, d);
+       __ses_xchg_cx(f, d);
+       __ses_xchg_ce(f, d);
+
        scf_loge("\n");
        __ses_get_crosses(f, d, crosses1);
 
+       __ses_mov_pos(f, d);
+       __ses_layout_cx(f, d);
+
        scf_vector_clear(crosses0, ( void (*)(void*) )ses_edge_free);
        scf_vector_clear(crosses1, ( void (*)(void*) )ses_edge_free);
        scf_vector_free(crosses0);
@@ -1291,12 +1298,6 @@ int ses_layout_function(ScfEfunction* f, int d)
        crosses0 = NULL;
        crosses1 = NULL;
 
-       __ses_setc_xy(f, d);
-       __ses_xchg_cx(f, d);
-       __ses_xchg_ce(f, d);
-       __ses_mov_pos(f, d);
-       __ses_layout_cx(f, d);
-
        int tx0 = INT_MAX;
        int tx1 = 0;