summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beutil.h
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2007-10-15 00:35:01 +0200
committerMatthias Braun <matze@braunis.de>2007-10-15 00:35:01 +0200
commit4f7329d7d8d3c676f076459a45a6d5ccf9c6fbba (patch)
treebe517f369bf33f39790a20af50e609e8fd752fa1 /ir/be/beutil.h
parent2176caea24ef5a9786dc4ada2bd2eaf74ad88b4d (diff)
more intelligent spill placement, should move spills out of loops in most cases
[r16200]
Diffstat (limited to 'ir/be/beutil.h')
-rw-r--r--ir/be/beutil.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/ir/be/beutil.h b/ir/be/beutil.h
index 0574caf..b38c452 100644
--- a/ir/be/beutil.h
+++ b/ir/be/beutil.h
@@ -54,7 +54,12 @@ pset *be_empty_set(void);
* @return The block of the node, or the node itself, if the node is a
* block.
*/
-static INLINE const ir_node *get_block(const ir_node *irn)
+static INLINE ir_node *get_block(ir_node *irn)
+{
+ return is_Block(irn) ? irn : get_nodes_block(irn);
+}
+
+static INLINE const ir_node *get_block_const(const ir_node *irn)
{
return is_Block(irn) ? irn : get_nodes_block(irn);
}