projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
clarify some node comments
[libfirm]
/
ir
/
opt
/
combo.c
diff --git
a/ir/opt/combo.c
b/ir/opt/combo.c
index
ba7deb5
..
505e24b
100644
(file)
--- a/
ir/opt/combo.c
+++ b/
ir/opt/combo.c
@@
-454,9
+454,9
@@
static void dump_split_list(const partition_t *list)
/**
* Dump partition and type for a node.
*/
/**
* Dump partition and type for a node.
*/
-static int dump_partition_hook(FILE *F,
ir_node *n,
ir_node *local)
+static int dump_partition_hook(FILE *F,
const ir_node *n, const
ir_node *local)
{
{
- ir_node *irn = local != NULL ? local : n;
+
const
ir_node *irn = local != NULL ? local : n;
node_t *node = get_irn_node(irn);
ir_fprintf(F, "info2 : \"partition %u type %+F\"\n", node->part->nr, node->type);
node_t *node = get_irn_node(irn);
ir_fprintf(F, "info2 : \"partition %u type %+F\"\n", node->part->nr, node->type);
@@
-1929,7
+1929,7
@@
static void compute_Block(node_t *node)
int i;
ir_node *block = node->node;
int i;
ir_node *block = node->node;
- if (block == get_irg_start_block(current_ir_graph) ||
has_Block_entity(block)
) {
+ if (block == get_irg_start_block(current_ir_graph) ||
get_Block_entity(block) != NULL
) {
/* start block and labelled blocks are always reachable */
node->type.tv = tarval_reachable;
return;
/* start block and labelled blocks are always reachable */
node->type.tv = tarval_reachable;
return;
@@
-2990,7
+2990,7
@@
static int only_one_reachable_proj(ir_node *n)
*/
static int can_exchange(ir_node *pred, ir_node *block)
{
*/
static int can_exchange(ir_node *pred, ir_node *block)
{
- if (is_Start(pred) ||
has_Block_entity(block)
)
+ if (is_Start(pred) ||
get_Block_entity(block) != NULL
)
return 0;
else if (is_Jmp(pred))
return 1;
return 0;
else if (is_Jmp(pred))
return 1;