Resurrect dags building and printing.

However, this time it's done after the statement recording (so the
statement numbers are set).
This commit is contained in:
Bill Currie 2012-11-05 15:22:38 +09:00
parent acedc65de1
commit 7404aacab7
2 changed files with 4 additions and 4 deletions

View File

@ -45,6 +45,7 @@
#include "def.h"
#include "flow.h"
#include "function.h"
#include "options.h"
#include "qfcc.h"
#include "set.h"
#include "statements.h"
@ -220,7 +221,10 @@ flow_build_vars (function_t *func)
for (sblock = func->sblock; sblock; sblock = sblock->next) {
for (s = sblock->statements; s; s = s->next)
func->statements[s->number] = s;
sblock->dag = make_dag (sblock);
}
if (options.block_dot.dags)
dump_sblock (func->sblock, "dags");
}
}

View File

@ -1403,9 +1403,5 @@ make_statements (expr_t *e)
if (options.block_dot.final)
dump_sblock (sblock, "final");
//for (s = sblock; s; s = s->next)
// s->dag = make_dag (s);
//if (options.block_dot.dags)
// dump_sblock (sblock, "dags");
return sblock;
}