projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove the unused function be_RegParams_append_out_reg().
[libfirm]
/
ir
/
ana
/
irdom.c
diff --git
a/ir/ana/irdom.c
b/ir/ana/irdom.c
index
b10ac5b
..
a878a41
100644
(file)
--- a/
ir/ana/irdom.c
+++ b/
ir/ana/irdom.c
@@
-40,7
+40,7
@@
#include "irgraph_t.h" /* To access state field. */
#include "irnode_t.h"
#include "ircons_t.h"
#include "irgraph_t.h" /* To access state field. */
#include "irnode_t.h"
#include "ircons_t.h"
-#include "array.h"
+#include "array
_t
.h"
#include "iredges.h"
#include "iredges.h"
@@
-637,13
+637,12
@@
static int init_construction(ir_graph *irg, irg_walk_func *pre) {
ir_node *pred = get_End_keepalive(end, i);
if (is_Block(pred)) {
ir_node *pred = get_End_keepalive(end, i);
if (is_Block(pred)) {
- if (Block_not_block_visited(pred)) {
- /* we found a endless loop */
- dec_irg_block_visited(irg);
- irg_block_walk(pred, pre, NULL, &n_blocks);
- }
- else
+ if (Block_block_visited(pred))
continue;
continue;
+
+ /* we found an endless loop */
+ dec_irg_block_visited(irg);
+ irg_block_walk(pred, pre, NULL, &n_blocks);
}
in[j++] = pred;
}
}
in[j++] = pred;
}
@@
-677,7
+676,7
@@
void compute_doms(ir_graph *irg) {
n_blocks = init_construction(irg, count_and_init_blocks_dom);
/* Memory for temporary information. */
n_blocks = init_construction(irg, count_and_init_blocks_dom);
/* Memory for temporary information. */
- tdi_list =
xcalloc(n_blocks, sizeof(tdi_list[0])
);
+ tdi_list =
XMALLOCNZ(tmp_dom_info, n_blocks
);
/* We need the out data structure. */
assure_irg_outs(irg);
/* We need the out data structure. */
assure_irg_outs(irg);
@@
-816,7
+815,7
@@
void compute_postdoms(ir_graph *irg) {
n_blocks = init_construction(irg, count_and_init_blocks_pdom);
/* Memory for temporary information. */
n_blocks = init_construction(irg, count_and_init_blocks_pdom);
/* Memory for temporary information. */
- tdi_list =
xcalloc(n_blocks, sizeof(tdi_list[0])
);
+ tdi_list =
XMALLOCNZ(tmp_dom_info, n_blocks
);
/* We need the out data structure. */
assure_irg_outs(irg);
/* We need the out data structure. */
assure_irg_outs(irg);