projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
indentation fixed
[libfirm]
/
testprograms
/
dead_loop_example.c
diff --git
a/testprograms/dead_loop_example.c
b/testprograms/dead_loop_example.c
index
6044571
..
cbce380
100644
(file)
--- a/
testprograms/dead_loop_example.c
+++ b/
testprograms/dead_loop_example.c
@@
-93,7
+93,7
@@
int main(int argc, char **argv)
in[1] = new_Bad();
a = new_Phi(2, in, mode_Is);
set_Add_left(c, a);
in[1] = new_Bad();
a = new_Phi(2, in, mode_Is);
set_Add_left(c, a);
- add_End_keepalive(get_irg_end(irg), a);
+
//
add_End_keepalive(get_irg_end(irg), a);
set_nodes_block(c, new_Bad());
set_nodes_block(a, new_Bad());
}
set_nodes_block(c, new_Bad());
set_nodes_block(a, new_Bad());
}
@@
-125,7
+125,7
@@
int main(int argc, char **argv)
switch_block(loopBlock1);
x = new_Jmp();
add_in_edge(loopBlock2, x);
switch_block(loopBlock1);
x = new_Jmp();
add_in_edge(loopBlock2, x);
- add_End_keepalive(get_irg_end(irg),
x
);
+ add_End_keepalive(get_irg_end(irg),
loopBlock1
);
mature_block(loopBlock2);
/* Make the return block */
mature_block(loopBlock2);
/* Make the return block */
@@
-136,7
+136,7
@@
int main(int argc, char **argv)
add_in_edge (get_irg_end_block(irg), x);
mature_block (get_irg_end_block(irg));
add_in_edge (get_irg_end_block(irg), x);
mature_block (get_irg_end_block(irg));
- finalize_cons (irg);
+
irg_
finalize_cons (irg);
//printf("Optimizing ...\n");
//dead_node_elimination(irg);
//printf("Optimizing ...\n");
//dead_node_elimination(irg);