re PR tree-optimization/88217 (Compile time and memory hog w/ -O2 -fstrict-enums...
authorRichard Biener <rguenther@suse.de>
Wed, 28 Nov 2018 13:04:27 +0000 (13:04 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 28 Nov 2018 13:04:27 +0000 (13:04 +0000)
commita257ad466894df673adc46865d763ee4324d9e17
treebb9217b9fbab81210da2036428065e73b22e1fa1
parent20f65b5607d4cf5b4b61e8d1923bb922abadf1ba
re PR tree-optimization/88217 (Compile time and memory hog w/ -O2 -fstrict-enums -fno-tree-forwprop -fno-tree-fre)

2018-11-28  Richard Biener  <rguenther@suse.de>

PR tree-optimization/88217
* vr-values.c (vr_values::extract_range_from_phi_node): Make
sure to handle results > +INF and < -INF correctly when
trying to drop down to +INF - 1 or -INF + 1.

* g++.dg/pr88217.C: New testcase.

From-SVN: r266557
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/pr88217.C [new file with mode: 0644]
gcc/vr-values.c