Fix ice in set_value_range
authorKugan Vivekanandarajah <kuganv@linaro.org>
Wed, 9 Nov 2016 01:41:26 +0000 (01:41 +0000)
committerKugan Vivekanandarajah <kugan@gcc.gnu.org>
Wed, 9 Nov 2016 01:41:26 +0000 (01:41 +0000)
commit5d5f1e95b1f4defc34597417167b1b2bc716b592
tree993a3d81302508074a9b5c91e514840c243f83dc
parent8f33501e32c020eada7df9d834622f2e2168f400
Fix ice in set_value_range

Fix ice in set_value_range
gcc/ChangeLog:

2016-11-09  Kugan Vivekanandarajah  <kuganv@linaro.org>

PR ipa/78121
* ipa-cp.c (propagate_vr_accross_jump_function): Pass param type.
Also fold constant passed as argument while computing value range.
(propagate_constants_accross_call): Pass param type.
* ipa-prop.c: export ipa_get_callee_param_type.
* ipa-prop.h: export ipa_get_callee_param_type.

gcc/testsuite/ChangeLog:

2016-11-09  Kugan Vivekanandarajah  <kuganv@linaro.org>

PR ipa/78121
* gcc.dg/ipa/pr78121.c: New test.

From-SVN: r241989
gcc/ChangeLog
gcc/ipa-cp.c
gcc/ipa-prop.c
gcc/ipa-prop.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/ipa/pr78121.c [new file with mode: 0644]