+2012-08-31 Martin Jambor <mjambor@suse.cz>
+
+ PR middle-end/54409
+ * ipa-inline-analysis.c (remap_predicate): Fix the offset_map
+ checking condition.
+
2012-08-31 Martin Jambor <mjambor@suse.cz>
* ipa-inline-analysis.c (phi_result_unknown_predicate): New function.
if (!operand_map
|| (int)VEC_length (int, operand_map) <= c->operand_num
|| VEC_index (int, operand_map, c->operand_num) == -1
- || (!c->agg_contents
- && VEC_index (int, offset_map, c->operand_num) != 0)
+ /* TODO: For non-aggregate conditions, adding an offset is
+ basically an arithmetic jump function processing which
+ we should support in future. */
+ || ((!c->agg_contents || !c->by_ref)
+ && VEC_index (int, offset_map, c->operand_num) > 0)
|| (c->agg_contents && c->by_ref
&& VEC_index (int, offset_map, c->operand_num) < 0))
cond_predicate = true_predicate ();
+2012-08-31 Martin Jambor <mjambor@suse.cz>
+
+ PR middle-end/54409
+ * gcc.dg/torture/pr54409.c: New test.
+
2012-08-31 Martin Jambor <mjambor@suse.cz>
* gfortran.dg/pr48636.f90: Add dump scan checks.