summaryrefslogtreecommitdiffhomepage
path: root/ir/be/belive.h
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2014-07-16 17:13:13 +0200
committerMatthias Braun <matze@braunis.de>2014-07-18 10:04:11 +0200
commit3cd5b2153fa672ade8c30a82a2cd0d96655d003a (patch)
tree9e82a2a80fa3da6269827d93f37ba1fb224d89ed /ir/be/belive.h
parent2ef7259cb0cb2e12a25a16892cdfaa17a63de3e8 (diff)
extract be_value_live_after() from be_values_interfere()
Value live_after() is a special case of the checks performed in values_interfere(). This commit extracts this code and use the new function where possible.
Diffstat (limited to 'ir/be/belive.h')
-rw-r--r--ir/be/belive.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/ir/be/belive.h b/ir/be/belive.h
index 7eb07d0..c0ce726 100644
--- a/ir/be/belive.h
+++ b/ir/be/belive.h
@@ -122,6 +122,11 @@ void be_liveness_end_of_block(const be_lv_t *lv,
const ir_node *bl, ir_nodeset_t *nodeset);
/**
+ * Check if value @p value is live after value @p after.
+ */
+bool be_value_live_after(const ir_node *value, const ir_node *after);
+
+/**
* Check, if two values interfere.
* @param lv Liveness information
* @param a The first value.