Commit 0578e417 by Richard Sandiford Committed by Richard Sandiford

ipa-inline-analysis.c (predicate_probability): Avoid comparison between signed and unsigned.

gcc/
	* ipa-inline-analysis.c (predicate_probability): Avoid comparison
	between signed and unsigned.

From-SVN: r179268
parent 4ef69dfc
2011-09-27 Richard Sandiford <richard.sandiford@linaro.org>
* ipa-inline-analysis.c (predicate_probability): Avoid comparison
between signed and unsigned.
2011-09-27 Ira Rosen <ira.rosen@linaro.org> 2011-09-27 Ira Rosen <ira.rosen@linaro.org>
* tree-vect-stmts.c (vectorizable_type_demotion): Handle basic block * tree-vect-stmts.c (vectorizable_type_demotion): Handle basic block
...@@ -482,8 +482,8 @@ predicate_probability (conditions conds, ...@@ -482,8 +482,8 @@ predicate_probability (conditions conds,
i2 - predicate_first_dynamic_condition); i2 - predicate_first_dynamic_condition);
if (c->code == CHANGED if (c->code == CHANGED
&& (c->operand_num && (c->operand_num
< VEC_length (inline_param_summary_t, < (int) VEC_length (inline_param_summary_t,
inline_param_summary))) inline_param_summary)))
{ {
int iprob = VEC_index (inline_param_summary_t, int iprob = VEC_index (inline_param_summary_t,
inline_param_summary, inline_param_summary,
...@@ -2353,8 +2353,8 @@ remap_edge_change_prob (struct cgraph_edge *inlined_edge, ...@@ -2353,8 +2353,8 @@ remap_edge_change_prob (struct cgraph_edge *inlined_edge,
struct ipa_jump_func *jfunc = ipa_get_ith_jump_func (args, i); struct ipa_jump_func *jfunc = ipa_get_ith_jump_func (args, i);
if (jfunc->type == IPA_JF_PASS_THROUGH if (jfunc->type == IPA_JF_PASS_THROUGH
&& (jfunc->value.pass_through.formal_id && (jfunc->value.pass_through.formal_id
< VEC_length (inline_param_summary_t, < (int) VEC_length (inline_param_summary_t,
inlined_es->param))) inlined_es->param)))
{ {
int prob1 = VEC_index (inline_param_summary_t, int prob1 = VEC_index (inline_param_summary_t,
es->param, i)->change_prob; es->param, i)->change_prob;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment