Commit 81d43c6b by Martin Jambor Committed by Jan Hubicka

re PR ipa/65028 (450.soplex in SPEC CPU 2006 is miscompiled)

	PR ipa/65028
	* ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
	across jump functions.

Co-Authored-By: Jan Hubicka <hubicka@ucw.cz>

From-SVN: r220826
parent dcdeca7a
2015-02-19 Martin Jambor <mjmabor@suse.cz>
Jan Hubicka <hubicka@ucw.cz>
PR ipa/65028
* ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
across jump functions.
2015-02-19 Uros Bizjak <ubizjak@gmail.com> 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
* config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols. * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
......
...@@ -1438,8 +1438,7 @@ propagate_alignment_accross_jump_function (struct cgraph_edge *cs, ...@@ -1438,8 +1438,7 @@ propagate_alignment_accross_jump_function (struct cgraph_edge *cs,
if (op != NOP_EXPR) if (op != NOP_EXPR)
{ {
if (op != POINTER_PLUS_EXPR if (op != POINTER_PLUS_EXPR
&& op != PLUS_EXPR && op != PLUS_EXPR)
&& op != MINUS_EXPR)
goto prop_fail; goto prop_fail;
tree operand = ipa_get_jf_pass_through_operand (jfunc); tree operand = ipa_get_jf_pass_through_operand (jfunc);
if (!tree_fits_shwi_p (operand)) if (!tree_fits_shwi_p (operand))
...@@ -1451,7 +1450,7 @@ propagate_alignment_accross_jump_function (struct cgraph_edge *cs, ...@@ -1451,7 +1450,7 @@ propagate_alignment_accross_jump_function (struct cgraph_edge *cs,
else else
{ {
src_idx = ipa_get_jf_ancestor_formal_id (jfunc); src_idx = ipa_get_jf_ancestor_formal_id (jfunc);
offset = ipa_get_jf_ancestor_offset (jfunc); offset = ipa_get_jf_ancestor_offset (jfunc) / BITS_PER_UNIT;;
} }
src_lats = ipa_get_parm_lattices (caller_info, src_idx); src_lats = ipa_get_parm_lattices (caller_info, src_idx);
......
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