projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- let loop run backwards
[libfirm]
/
ir
/
ana
/
irouts.c
diff --git
a/ir/ana/irouts.c
b/ir/ana/irouts.c
index
f49d3c8
..
5267729
100644
(file)
--- a/
ir/ana/irouts.c
+++ b/
ir/ana/irouts.c
@@
-24,13
+24,9
@@
* @date 1.2002
* @version $Id$
*/
* @date 1.2002
* @version $Id$
*/
-#ifdef HAVE_CONFIG_H
#include "config.h"
#include "config.h"
-#endif
-#ifdef HAVE_STRING_H
#include <string.h>
#include <string.h>
-#endif
#include "xmalloc.h"
#include "irouts.h"
#include "xmalloc.h"
#include "irouts.h"
@@
-266,8
+262,7
@@
void irg_out_block_walk(ir_node *node,
for (i = 0, n = get_irn_n_outs(node); i < n; ++i) {
ir_node *succ = get_irn_out(node, i);
for (i = 0, n = get_irn_n_outs(node); i < n; ++i) {
ir_node *succ = get_irn_out(node, i);
- if (get_irn_visited(succ) < get_irg_visited(current_ir_graph))
- irg_out_walk_2(succ, pre, post, env);
+ irg_out_block_walk2(succ, pre, post, env);
}
}
else {
}
}
else {
@@
-340,9
+335,7
@@
static int count_outs(ir_graph *irg) {
even if they are not visible. */
for (i = anchor_last - 1; i >= 0; --i) {
n = get_irg_anchor(irg, i);
even if they are not visible. */
for (i = anchor_last - 1; i >= 0; --i) {
n = get_irg_anchor(irg, i);
- if (!irn_visited(n)) {
- mark_irn_visited(n);
-
+ if (!irn_visited_else_mark(n)) {
n->out = INT_TO_PTR(1);
++res;
}
n->out = INT_TO_PTR(1);
++res;
}
@@
-414,9
+407,7
@@
static ir_def_use_edge *set_out_edges(ir_graph *irg, ir_def_use_edge *free) {
/* handle anchored nodes */
for (i = anchor_last - 1; i >= 0; --i) {
n = get_irg_anchor(irg, i);
/* handle anchored nodes */
for (i = anchor_last - 1; i >= 0; --i) {
n = get_irg_anchor(irg, i);
- if (!irn_visited(n)) {
- mark_irn_visited(n);
-
+ if (!irn_visited_else_mark(n)) {
n_outs = PTR_TO_INT(n->out);
n->out = free;
#ifdef DEBUG_libfirm
n_outs = PTR_TO_INT(n->out);
n->out = free;
#ifdef DEBUG_libfirm
@@
-435,7
+426,7
@@
static ir_def_use_edge *set_out_edges(ir_graph *irg, ir_def_use_edge *free) {
* position 0, the Start block at position 1. This is necessary for
* the out block walker.
*/
* position 0, the Start block at position 1. This is necessary for
* the out block walker.
*/
-static
INLINE
void fix_start_proj(ir_graph *irg) {
+static
inline
void fix_start_proj(ir_graph *irg) {
ir_node *startbl = get_irg_start_block(irg);
if (get_Block_n_cfg_outs(startbl)) {
ir_node *startbl = get_irg_start_block(irg);
if (get_Block_n_cfg_outs(startbl)) {