OSDN Git Service

2011-12-07 Martin Jambor <mjambor@suse.cz>
authorjamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 7 Dec 2011 10:30:49 +0000 (10:30 +0000)
committerjamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 7 Dec 2011 10:30:49 +0000 (10:30 +0000)
commit29bb06c77dd988c92552ca37d2fb75c0aa86d5e2
tree1007b356a4bbf5908128fc1967883d9ca68bbcd0
parent777c515394e676ceb2406984d6321c6aa78bd5d0
2011-12-07  Martin Jambor  <mjambor@suse.cz>

PR tree-optimization/50744
* ipa-cp.c (good_cloning_opportunity_p): Assert size_cost is positive,
compute evaluation in HOST_WIDEST_INT.
(safe_add): New function
(propagate_effects): Use safe_add to accumulate effects.

* testsuite/gcc.dg/ipa/pr50744.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182076 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/ipa-cp.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/ipa/pr50744.c [new file with mode: 0644]