projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ia32: Use a more logical specification of operand sizes in the binary emitter.
[libfirm]
/
ir
/
be
/
beirg.c
diff --git
a/ir/be/beirg.c
b/ir/be/beirg.c
index
d0ee0ea
..
5bdd854
100644
(file)
--- a/
ir/be/beirg.c
+++ b/
ir/be/beirg.c
@@
-29,46
+29,35
@@
#include "beirg.h"
#include "absgraph.h"
#include "belive.h"
#include "beirg.h"
#include "absgraph.h"
#include "belive.h"
-#include "bedomfront.h"
-
be_lv_t *be_assure_livenes
s(ir_graph *irg)
+
void be_invalidate_live_set
s(ir_graph *irg)
{
be_irg_t *birg = be_birg_from_irg(irg);
{
be_irg_t *birg = be_birg_from_irg(irg);
- if (birg->lv != NULL)
- return birg->lv;
-
- return birg->lv = be_liveness(birg->irg);
+ be_liveness_invalidate_sets(birg->lv);
}
}
-void be_
assure_dom_front
(ir_graph *irg)
+void be_
invalidate_live_chk
(ir_graph *irg)
{
be_irg_t *birg = be_birg_from_irg(irg);
{
be_irg_t *birg = be_birg_from_irg(irg);
- if (birg->dom_front != NULL)
- return;
-
- birg->dom_front = be_compute_dominance_frontiers(birg->irg);
+ be_liveness_invalidate_chk(birg->lv);
}
}
-void be_
invalidate_dom_front
(ir_graph *irg)
+void be_
assure_live_sets
(ir_graph *irg)
{
be_irg_t *birg = be_birg_from_irg(irg);
{
be_irg_t *birg = be_birg_from_irg(irg);
- if (birg->dom_front == NULL)
- return;
+ be_liveness_compute_sets(birg->lv);
+}
- be_free_dominance_frontiers(birg->dom_front);
- birg->dom_front = NULL;
+void be_assure_live_chk(ir_graph *irg)
+{
+ be_irg_t *birg = be_birg_from_irg(irg);
+ be_liveness_compute_chk(birg->lv);
}
void be_free_birg(ir_graph *irg)
{
be_irg_t *birg = be_birg_from_irg(irg);
}
void be_free_birg(ir_graph *irg)
{
be_irg_t *birg = be_birg_from_irg(irg);
- free_execfreq(birg->exec_freq);
- birg->exec_freq = NULL;
- if (birg->dom_front != NULL) {
- be_free_dominance_frontiers(birg->dom_front);
- birg->dom_front = NULL;
- }
if (birg->lv != NULL) {
be_liveness_free(birg->lv);
birg->lv = NULL;
if (birg->lv != NULL) {
be_liveness_free(birg->lv);
birg->lv = NULL;