summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beirg.c
diff options
context:
space:
mode:
authorSebastian Hack <hack@ipd.info.uni-karlsruhe.de>2007-06-14 21:44:07 +0200
committerSebastian Hack <hack@ipd.info.uni-karlsruhe.de>2007-06-14 21:44:07 +0200
commit3c2f7c0c9e0bff5d97a973bc224579922bb7df81 (patch)
tree2903764a73354646cd2a4d06032e81827f5b65b5 /ir/be/beirg.c
parent1d197a5658050d24f4ae71f9c5735035e389bb6c (diff)
* Changed the liveness API:
- The liveness in the birg stays always the same - Invalidation is done with be_liveness_invalidate() - Each algo has to specify if it needs only liveness checks be_liveness_assure_chk() or the complete liveness sets for use with be_lv_foreach, etc. be_liveness_assure_sets() * Adapted all the files to these changes * made bessadestr.c liveness updating [r14506]
Diffstat (limited to 'ir/be/beirg.c')
-rw-r--r--ir/be/beirg.c26
1 files changed, 2 insertions, 24 deletions
diff --git a/ir/be/beirg.c b/ir/be/beirg.c
index 9579177..da5e4f0 100644
--- a/ir/be/beirg.c
+++ b/ir/be/beirg.c
@@ -31,29 +31,12 @@
#include "execfreq.h"
#include "beirg_t.h"
-void be_assure_liveness_chk(be_irg_t *birg)
-{
- if (birg->lv_chk != NULL)
- return;
-
- birg->lv_chk = lv_chk_new(birg->irg);
-}
-
-void be_assure_liveness(be_irg_t *birg)
+be_lv_t *be_assure_liveness(be_irg_t *birg)
{
if (birg->lv != NULL)
return;
- birg->lv = be_liveness(birg->irg);
-}
-
-void be_invalidate_liveness(be_irg_t *birg)
-{
- if (birg->lv == NULL)
- return;
-
- be_liveness_free(birg->lv);
- birg->lv = NULL;
+ return birg->lv = be_liveness(birg->irg);
}
void be_assure_dom_front(be_irg_t *birg)
@@ -103,11 +86,6 @@ be_lv_t *(be_get_birg_liveness)(const be_irg_t *birg)
return _be_get_birg_liveness(birg);
}
-lv_chk_t *(be_get_birg_liveness_chk)(const be_irg_t *birg)
-{
- return _be_get_birg_liveness_chk(birg);
-}
-
be_dom_front_info_t *(be_get_birg_dom_front)(const be_irg_t *birg)
{
return _be_get_birg_dom_front(birg);