projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
e11232b
)
added missing include
author
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Thu, 10 Mar 2005 10:37:54 +0000
(10:37 +0000)
committer
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Thu, 10 Mar 2005 10:37:54 +0000
(10:37 +0000)
[r5341]
ir/opt/tailrec.c
patch
|
blob
|
history
diff --git
a/ir/opt/tailrec.c
b/ir/opt/tailrec.c
index
dfa5be7
..
8fbd19c
100644
(file)
--- a/
ir/opt/tailrec.c
+++ b/
ir/opt/tailrec.c
@@
-34,6
+34,7
@@
#include "irgraph_t.h"
#include "ircons.h"
#include "irflag.h"
+#include "trouts.h"
#include "firmstat.h"
/**
@@
-241,6
+242,13
@@
static void do_opt_tail_rec(ir_graph *irg, ir_node *rets, int n_tail_calls)
exchange(p, phis[proj + 1]);
}
+ /* tail recursion was done, all info is invalid */
+ set_irg_dom_inconsistent(irg);
+ set_irg_outs_inconsistent(irg);
+ set_irg_loopinfo_state(current_ir_graph, loopinfo_cf_inconsistent);
+ set_trouts_inconsistent();
+ set_irg_callee_info_state(irg, irg_callee_info_inconsistent);
+
current_ir_graph = rem_irg;
set_optimize(rem);
}