Fix ipa-vrp convert value_range
authorKugan Vivekanandarajah <kuganv@linaro.org>
Tue, 27 Sep 2016 03:41:14 +0000 (03:41 +0000)
committerKugan Vivekanandarajah <kugan@gcc.gnu.org>
Tue, 27 Sep 2016 03:41:14 +0000 (03:41 +0000)
commit3a4228babc083065faaf41568fbc92e0e562a401
treef998314ef3804e0b57a614c034f940830e779812
parent963da599303d6abae1507c2b4fea29c941b10289
Fix ipa-vrp convert value_range

gcc/ChangeLog:

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

PR ipa/77677
* ipa-prop.c (ipa_compute_jump_functions_for_edge): Use
extract_range_from_unary_expr to convert value_range.
* tree-vrp.c (extract_range_from_unary_expr_1): Rename to.
(extract_range_from_unary_expr): This.
* tree-vrp.h (extract_range_from_unary_expr): Declare.

gcc/testsuite/ChangeLog:

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

PR ipa/77677
* gcc.dg/torture/pr77677-2.c: New test.

From-SVN: r240517
gcc/ChangeLog
gcc/ipa-prop.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr77677-2.c [new file with mode: 0644]
gcc/tree-vrp.c
gcc/tree-vrp.h