summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bera.c
diff options
context:
space:
mode:
authorSebastian Hack <hack@ipd.info.uni-karlsruhe.de>2007-05-10 16:02:45 +0200
committerSebastian Hack <hack@ipd.info.uni-karlsruhe.de>2007-05-10 16:02:45 +0200
commit4d559af38faac088acceec2aa77e5139534d2b7a (patch)
tree47db9cf337e0f9532b4052e07fa3cf9efc73d30f /ir/be/bera.c
parentf1cbc9247c6fa5a2812c6a88b99c8471392ccd35 (diff)
Small changes
Some of the check routines should be moved to a _t.h file to be inlined better [r13759]
Diffstat (limited to 'ir/be/bera.c')
-rw-r--r--ir/be/bera.c19
1 files changed, 8 insertions, 11 deletions
diff --git a/ir/be/bera.c b/ir/be/bera.c
index 29fa1d1..b776366 100644
--- a/ir/be/bera.c
+++ b/ir/be/bera.c
@@ -46,23 +46,20 @@
be_ra_timer_t *global_ra_timer = NULL;
-static INLINE
-sched_timestep_t get_time_step(const ir_node *irn)
-{
- if(is_Phi(irn))
- return 0;
-
- return sched_get_time_step(irn);
-}
+#define get_time_step(irn) (is_Phi(irn) ? 0 : sched_get_time_step(irn))
-int value_dominates_intrablock(const ir_node *a, const ir_node *b)
+static INLINE int _value_dominates_intrablock(const ir_node *a, const ir_node *b)
{
sched_timestep_t as = get_time_step(a);
sched_timestep_t bs = get_time_step(b);
-
return as <= bs;
}
+int value_dominates_intrablock(const ir_node *a, const ir_node *b)
+{
+ return _value_dominates_intrablock(a, b);
+}
+
int value_dominates(const ir_node *a, const ir_node *b)
{
const ir_node *block_a = get_block(a);
@@ -79,7 +76,7 @@ int value_dominates(const ir_node *a, const ir_node *b)
/*
* Dominance is determined by the time steps of the schedule.
*/
- return value_dominates_intrablock(a, b);
+ return _value_dominates_intrablock(a, b);
}
/**