https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71433
--- Comment #15 from Richard Biener <rguenth at gcc dot gnu.org> --- Author: rguenth Date: Fri Jan 27 12:30:43 2017 New Revision: 244974 URL: https://gcc.gnu.org/viewcvs?rev=244974&root=gcc&view=rev Log: 2017-01-27 Richard Biener <rguent...@suse.de> PR tree-optimization/71433 * tree-vrp.c (register_new_assert_for): Revert earlier changes. (compare_assert_loc): New function. (process_assert_insertions): Sort and optimize assert locations to remove duplicates and push down identical assertions on edges to their destination block. * gcc.dg/Warray-bounds-21.c: New testcase. Added: trunk/gcc/testsuite/gcc.dg/Warray-bounds-21.c Modified: trunk/gcc/ChangeLog trunk/gcc/testsuite/ChangeLog trunk/gcc/tree-vrp.c