projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use be_emit_irprintf("%T", x) instead of be_emit_tarval().
[libfirm]
/
ir
/
ana
/
heights.c
diff --git
a/ir/ana/heights.c
b/ir/ana/heights.c
index
3e84239
..
7ccb233
100644
(file)
--- a/
ir/ana/heights.c
+++ b/
ir/ana/heights.c
@@
-22,7
+22,6
@@
* @brief Compute heights of nodes inside basic blocks
* @author Sebastian Hack
* @date 19.04.2006
* @brief Compute heights of nodes inside basic blocks
* @author Sebastian Hack
* @date 19.04.2006
- * @version $Id$
*/
#include "config.h"
*/
#include "config.h"
@@
-100,12
+99,12
@@
static bool search(ir_heights_t *h, const ir_node *curr, const ir_node *tgt)
return false;
/* Check, if we have already been here. Coming more often won't help :-) */
return false;
/* Check, if we have already been here. Coming more often won't help :-) */
- h_curr = get_height_data(h, curr);
+ h_curr =
maybe_
get_height_data(h, curr);
if (h_curr->visited >= h->visited)
return false;
/* If we are too deep into the DAG we won't find the target either. */
if (h_curr->visited >= h->visited)
return false;
/* If we are too deep into the DAG we won't find the target either. */
- h_tgt = get_height_data(h, tgt);
+ h_tgt =
maybe_
get_height_data(h, tgt);
if (h_curr->height > h_tgt->height)
return false;
if (h_curr->height > h_tgt->height)
return false;
@@
-122,16
+121,12
@@
static bool search(ir_heights_t *h, const ir_node *curr, const ir_node *tgt)
return false;
}
return false;
}
-/**
- * Check, if one node can be reached from another one, according to data
- * dependence.
- */
int heights_reachable_in_block(ir_heights_t *h, const ir_node *n,
const ir_node *m)
{
int res = 0;
int heights_reachable_in_block(ir_heights_t *h, const ir_node *n,
const ir_node *m)
{
int res = 0;
- irn_height_t *hn = get_height_data(h, n);
- irn_height_t *hm = get_height_data(h, m);
+ irn_height_t *hn =
maybe_
get_height_data(h, n);
+ irn_height_t *hm =
maybe_
get_height_data(h, m);
assert(get_nodes_block(n) == get_nodes_block(m));
assert(hn != NULL && hm != NULL);
assert(get_nodes_block(n) == get_nodes_block(m));
assert(hn != NULL && hm != NULL);