re PR tree-optimization/76490 (when use -O2 -fcheck-founds compiler appears to hang...
authorRichard Biener <rguenther@suse.de>
Wed, 17 Aug 2016 11:51:51 +0000 (11:51 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 17 Aug 2016 11:51:51 +0000 (11:51 +0000)
commit661d6efd62869911344c2d8bd57dd3ca8f4af1dc
tree29be5c0cfa9641497b251d5e5af7fc294a63579f
parent03c9d8596f91e600383089ecabdea6bc206ab14c
re PR tree-optimization/76490 (when use -O2 -fcheck-founds compiler appears to hang and consumes all memory)

2016-08-17  Richard Biener  <rguenther@suse.de>

PR tree-optimization/76490
* tree-vrp.c (update_value_range): Preserve overflow infinities
when intersecting with ranges from get_range_info.
(operand_less_p): Handle overflow infinities correctly.
(value_range_constant_singleton): Use vrp_operand_equal_p
to handle overflow max/min correctly.
(vrp_valueize): Likewise.
(union_ranges): Likewise.
(intersect_ranges): Likewise.
(vrp_visit_phi_node): Improve iteration limitation to only
apply when we'll possibly re-visit the PHI via a changed argument
on the backedge.

* gfortran.fortran-torture/compile/pr76490.f90: New testcase.
* gcc.dg/pr52904.c: XFAIL.

From-SVN: r239529
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr52904.c
gcc/testsuite/gfortran.fortran-torture/compile/pr76490.f90 [new file with mode: 0644]
gcc/tree-vrp.c