Use get/set_ptr_nonnull in ipa-vrp
authorKugan Vivekanandarajah <kuganv@linaro.org>
Mon, 17 Oct 2016 23:37:57 +0000 (23:37 +0000)
committerKugan Vivekanandarajah <kugan@gcc.gnu.org>
Mon, 17 Oct 2016 23:37:57 +0000 (23:37 +0000)
commit718625ad3a786a3df0405d2e080c211ccad915f4
tree4deb2aee11e68e2871a823202f2ebc40fadbcc59
parent735b8f9fc4b14384b246b39dfccbf529402b7791
Use get/set_ptr_nonnull in ipa-vrp

Use get/set_ptr_nonnull in ipa-vrp
gcc/ChangeLog:

2016-10-18  Kugan Vivekanandarajah  <kuganv@linaro.org>

* ipa-prop.c (ipa_compute_jump_functions_for_edge): Set value range
for pointer type too.
(ipcp_update_vr): set_ptr_nonnull for pointer.

gcc/testsuite/ChangeLog:

2016-10-18  Kugan Vivekanandarajah  <kuganv@linaro.org>

* gcc.dg/ipa/vrp4.c: New test.

From-SVN: r241288
gcc/ChangeLog
gcc/ipa-prop.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/ipa/vrp4.c [new file with mode: 0644]