[Bug tree-optimization/86231] [8/9 Regression] vrp_meet causes wrong-code
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jun 20 14:50:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86231
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Jun 20 14:50:09 2018
New Revision: 261806
URL: https://gcc.gnu.org/viewcvs?rev=261806&root=gcc&view=rev
Log:
PR tree-optimization/86231
* tree-vrp.c (union_ranges): For ( [ ) ] or ( )[ ] range and
anti-range don't overwrite *vr0min before using it to compute *vr0max.
* gcc.dg/tree-ssa/vrp119.c: New test.
* gcc.c-torture/execute/pr86231.c: New test.
Added:
branches/gcc-8-branch/gcc/testsuite/gcc.c-torture/execute/pr86231.c
branches/gcc-8-branch/gcc/testsuite/gcc.dg/tree-ssa/vrp119.c
Modified:
branches/gcc-8-branch/gcc/ChangeLog
branches/gcc-8-branch/gcc/testsuite/ChangeLog
branches/gcc-8-branch/gcc/tree-vrp.c
More information about the Gcc-bugs
mailing list