projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make fehler159 compilable.
[libfirm]
/
ir
/
opt
/
ldst2.c
diff --git
a/ir/opt/ldst2.c
b/ir/opt/ldst2.c
index
e203a9c
..
eddc80a
100644
(file)
--- a/
ir/opt/ldst2.c
+++ b/
ir/opt/ldst2.c
@@
-29,7
+29,7
@@
#include "iroptimize.h"
#include "iroptimize.h"
-#include "array.h"
+#include "array
_t
.h"
#include "debug.h"
#include "ircons.h"
#include "irgraph.h"
#include "debug.h"
#include "ircons.h"
#include "irgraph.h"
@@
-525,7
+525,7
@@
static void Detotalise(ir_graph* irg)
size_t npreds = get_Block_n_cfgpreds(end_block);
size_t i;
size_t npreds = get_Block_n_cfgpreds(end_block);
size_t i;
- unfinished_phis =
xmalloc(sizeof(*unfinished_phis) *
count_addrs);
+ unfinished_phis =
XMALLOCN(ir_node,
count_addrs);
for (i = 0; i < count_addrs; i++) {
unfinished_phis[i] = NULL;
}
for (i = 0; i < count_addrs; i++) {
unfinished_phis[i] = NULL;
}
@@
-788,7
+788,7
@@
static void walker(ir_node *proj, void *env)
}
n = ir_nodeset_size(&pi.user_mem);
}
n = ir_nodeset_size(&pi.user_mem);
- if (n != 0) { /* nothing happend otherwise */
+ if (n != 0) { /* nothing happen
e
d otherwise */
ir_graph *irg = current_ir_graph;
ir_node *sync;
ir_node **in;
ir_graph *irg = current_ir_graph;
ir_node *sync;
ir_node **in;
@@
-840,10
+840,10
@@
static void walker(ir_node *proj, void *env)
void opt_sync(ir_graph *irg)
{
void opt_sync(ir_graph *irg)
{
-
assure_irg_address_taken
_computed(irg);
-
assure_irp_globals_address_taken
_computed();
+
//assure_irg_entity_usage
_computed(irg);
+
//assure_irp_globals_entity_usage
_computed();
irg_walk_graph(irg, NULL, walker, NULL);
irg_walk_graph(irg, NULL, walker, NULL);
- //optimize_graph_df(irg);
+
//optimize_graph_df(irg);
//irg_walk_graph(irg, NormaliseSync, NULL, NULL);
}
//irg_walk_graph(irg, NormaliseSync, NULL, NULL);
}