projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- representing the 3-state visibility (default,local,external) with 2 bits was
[libfirm]
/
ir
/
ir
/
irssacons.c
diff --git
a/ir/ir/irssacons.c
b/ir/ir/irssacons.c
index
4d653f7
..
aa5ec78
100644
(file)
--- a/
ir/ir/irssacons.c
+++ b/
ir/ir/irssacons.c
@@
-23,25
+23,19
@@
* @author Michael Beck
* @version $Id$
*/
* @author Michael Beck
* @version $Id$
*/
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
+#include "config.h"
#include "ircons_t.h"
#include "irgraph_t.h"
#include "irnode_t.h"
#include "irgwalk.h"
#include "ircons_t.h"
#include "irgraph_t.h"
#include "irnode_t.h"
#include "irgwalk.h"
-typedef struct walk_env_t {
- int n_loc; /**< Number of newly allocated locations. */
-} walk_env;
-
/**
* Post-walker: prepare the graph nodes for new SSA construction cycle by allocation
* new arrays.
*/
/**
* Post-walker: prepare the graph nodes for new SSA construction cycle by allocation
* new arrays.
*/
-static void prepare_nodes(ir_node *irn, void *
ctx
) {
-
walk_env *env = ctx
;
+static void prepare_nodes(ir_node *irn, void *
env
) {
+
(void)env
;
switch (get_irn_opcode(irn)) {
case iro_Block:
switch (get_irn_opcode(irn)) {
case iro_Block:
@@
-52,7
+46,6
@@
static void prepare_nodes(ir_node *irn, void *ctx) {
memset(irn->attr.block.graph_arr, 0, sizeof(ir_node *) * current_ir_graph->n_loc);
irn->attr.block.phis = NULL;
break;
memset(irn->attr.block.graph_arr, 0, sizeof(ir_node *) * current_ir_graph->n_loc);
irn->attr.block.phis = NULL;
break;
-#if PRECISE_EXC_CONTEXT
/* note that the frag array must be cleared first, else firm_alloc_frag_arr()
will not allocate new memory. */
case iro_Quot:
/* note that the frag array must be cleared first, else firm_alloc_frag_arr()
will not allocate new memory. */
case iro_Quot:
@@
-95,7
+88,6
@@
static void prepare_nodes(ir_node *irn, void *ctx) {
irn->attr.bound.exc.frag_arr = NULL;
firm_alloc_frag_arr(irn, op_Bound, &irn->attr.bound.exc.frag_arr);
break;
irn->attr.bound.exc.frag_arr = NULL;
firm_alloc_frag_arr(irn, op_Bound, &irn->attr.bound.exc.frag_arr);
break;
-#endif
default:
;
}
default:
;
}
@@
-113,8
+105,6
@@
static void prepare_nodes(ir_node *irn, void *ctx) {
* to construct new values.
*/
void ssa_cons_start(ir_graph *irg, int n_loc) {
* to construct new values.
*/
void ssa_cons_start(ir_graph *irg, int n_loc) {
- walk_env env;
-
/* for now we support only phase_high graphs */
assert(irg->phase_state == phase_high);
/* for now we support only phase_high graphs */
assert(irg->phase_state == phase_high);
@@
-128,7
+118,7
@@
void ssa_cons_start(ir_graph *irg, int n_loc) {
* seems worth to do this. First, we have to check if they really exists and
* then clear them. We do not expect SSA construction is used often.
*/
* seems worth to do this. First, we have to check if they really exists and
* then clear them. We do not expect SSA construction is used often.
*/
- irg_walk_graph(irg, NULL, prepare_nodes,
&env
);
+ irg_walk_graph(irg, NULL, prepare_nodes,
NULL
);
}
/**
}
/**