List schedule selectors have new function which allows the backend to
authorSebastian Hack <hack@ipd.info.uni-karlsruhe.de>
Fri, 20 Jan 2006 09:33:19 +0000 (09:33 +0000)
committerSebastian Hack <hack@ipd.info.uni-karlsruhe.de>
Fri, 20 Jan 2006 09:33:19 +0000 (09:33 +0000)
choose which nodes may appear in schedules and which not

ir/be/besched.c
ir/be/besched_t.h

index f856db4..91e99d4 100644 (file)
@@ -73,7 +73,7 @@ int sched_verify(const ir_node *block)
   const ir_node *irn;
   int i, n;
   int *save_time_step;
-  ir_node **save_nodes;
+  const ir_node **save_nodes;
   const ir_edge_t *edge;
   pset *scheduled_nodes = pset_new_ptr_default();
 
@@ -152,7 +152,7 @@ int sched_verify(const ir_node *block)
 
   del_pset(scheduled_nodes);
   free(save_time_step);
-  free(save_nodes);
+  free((void *) save_nodes);
   return res;
 }
 
index 0d37f86..600430e 100644 (file)
@@ -53,7 +53,7 @@ static INLINE int _sched_get_time_step(const ir_node *irn)
  * @param irn The node to check for.
  * @return 1, if the node consumes/produces data, false if not.
  */
-static INLINE int to_appear_in_schedule(ir_node *irn)
+static INLINE int to_appear_in_schedule(const ir_node *irn)
 {
   if(get_irn_opcode(irn) == iro_Start)
        return 1;