Lines Matching refs:cp

4547   struct cost_pair *cp;
4549 cp = ivs->cand_for_use[uid];
4550 if (!cp)
4552 cid = cp->cand->id;
4562 if (cp->cand->iv)
4565 ivs->cand_cost -= cp->cand->cost;
4567 iv_ca_set_remove_invariants (ivs, cp->cand->depends_on);
4570 ivs->cand_use_cost -= cp->cost;
4572 iv_ca_set_remove_invariants (ivs, cp->depends_on);
4599 struct iv_use *use, struct cost_pair *cp)
4603 if (ivs->cand_for_use[uid] == cp)
4609 if (cp)
4611 cid = cp->cand->id;
4614 ivs->cand_for_use[uid] = cp;
4620 if (cp->cand->iv)
4623 ivs->cand_cost += cp->cand->cost;
4625 iv_ca_set_add_invariants (ivs, cp->cand->depends_on);
4628 ivs->cand_use_cost += cp->cost;
4629 iv_ca_set_add_invariants (ivs, cp->depends_on);
4641 struct cost_pair *best_cp = NULL, *cp;
4655 cp = get_use_iv_cost (data, use, iv_cand (data, i));
4657 if (cheaper_cost_pair (cp, best_cp))
4658 best_cp = cp;
4675 iv_ca_has_deps (struct iv_ca *ivs, struct cost_pair *cp)
4680 if (!cp->depends_on)
4683 EXECUTE_IF_SET_IN_BITMAP (cp->depends_on, 0, i, bi)
4926 struct cost_pair *old_cp, *new_cp, *cp;
4951 cp = get_use_iv_cost (data, use, cnd);
4952 if (!cp)
4954 if (!iv_ca_has_deps (ivs, cp))
4957 if (!cheaper_cost_pair (cp, new_cp))
4960 new_cp = cp;
4972 cp = get_use_iv_cost (data, use, cnd);
4973 if (!cp)
4975 if (!iv_ca_has_deps (ivs, cp))
4978 if (!cheaper_cost_pair (cp, new_cp))
4981 new_cp = cp;
5062 struct cost_pair *cp;
5067 cp = iv_ca_cand_for_use (ivs, use);
5068 if (cp)
5070 best_delta = iv_ca_delta_add (use, NULL, cp, NULL);
5089 cp = get_use_iv_cost (data, use, cand);
5090 if (!cp)
5093 iv_ca_set_cp (data, ivs, use, cp);
5096 act_delta = iv_ca_delta_add (use, NULL, cp, act_delta);
5113 cp = use->cost_map + i;
5114 cand = cp->cand;
5126 iv_ca_set_cp (data, ivs, use, cp);
5130 cp, act_delta);
5611 struct cost_pair *cp = get_use_iv_cost (data, use, cand);
5613 bound = cp->value;