-/**
- * Inserts all values in array @p vals of length @p cnt
- * into the workset. There must be enough space for the
- * entries.
- */
-static INLINE void workset_bulk_insert(workset_t *ws, int cnt, ir_node **vals) {
- int i, o;
-
- for(o=0; o<cnt; ++o) {
- ir_node *val = vals[o];
- DBG((dbg, DBG_TRACE, "Bulk insert %+F\n", val));
- /* check for current regclass */
- if (arch_get_irn_reg_class(ws->bel->arch, val, -1) != ws->bel->cls) {
- DBG((dbg, DBG_TRACE, "Wrong reg class\n"));
- goto no_insert;
- }
-
- /* check if val is already contained */
- for(i=0; i<ws->len; ++i)
- if (ws->vals[i].irn == val) {
- DBG((dbg, DBG_TRACE, "Already contained\n"));
- goto no_insert;
- }
-
- /* insert val */
- assert(ws->len < ws->bel->n_regs && "Workset does not have enough room!");
- ws->vals[ws->len++].irn = val;
- DBG((dbg, DBG_TRACE, "Inserted\n"));
-
-no_insert:
- /*epsilon statement :)*/;
- }
-}
-