Fix the number of vertices in FCG with scc clustering heuristic
@@ -1832,10 +1832,14 @@ int pluto_auto_transform(PlutoProg *prog)
}
nVertices = 0;
+ if (options->scc_cluster) {
+ nVertices = ddg->num_sccs;
+ } else {
for (i=0; i<nstmts; i++) {
ddg->vertices[i].fcg_stmt_offset = nVertices;
nVertices += stmts[i]->dim_orig;
}
+ }
colour = (int*) malloc(nVertices*sizeof(int));
for(i=0; i<nVertices;i++){
