Use ipa-vrp result in tree-vrp
authorKugan Vivekanandarajah <kuganv@linaro.org>
Tue, 20 Sep 2016 23:41:01 +0000 (23:41 +0000)
committerKugan Vivekanandarajah <kugan@gcc.gnu.org>
Tue, 20 Sep 2016 23:41:01 +0000 (23:41 +0000)
commita03df1d582cef758fb03089a2c0b33cb8b1df6b6
tree55bb949e1c68b5bfb5b1acc8411ec489bd6a595f
parent8bc5448f39ccd26b6f06cd7120f09c2254bac3be
Use ipa-vrp result in tree-vrp

gcc/ChangeLog:

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

 * tree-vrp.c (get_value_range): Teach PARM_DECL to use ipa-vrp
 results.

gcc/testsuite/ChangeLog:

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

* gcc.dg/guality/pr54519-1.c: Add -fno-ipa-vrp. Else constant
arguments/compare will be optimized away.
* gcc.dg/torture/ftrapv-1.c: Likewise.

From-SVN: r240293
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/guality/pr54519-1.c
gcc/testsuite/gcc.dg/torture/ftrapv-1.c
gcc/tree-vrp.c