mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-28 05:01:28 +00:00
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:
parent
acedc65de1
commit
7404aacab7
2 changed files with 4 additions and 4 deletions
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue