summaryrefslogtreecommitdiff
path: root/gcc/tree-vect-loop.c
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2013-08-30 07:47:54 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2013-08-30 07:47:54 +0000
commit1d4bc0bbe2d559f34369d930a2486389c91dbe02 (patch)
tree2bb2dc21225ff64d9bd30536685b130abb71793c /gcc/tree-vect-loop.c
parenta1e7a7babcac7905de08bbeec5d716d256b0fea3 (diff)
downloadgcc-1d4bc0bbe2d559f34369d930a2486389c91dbe02.tar.gz
2013-08-30 Richard Biener <rguenther@suse.de>
PR tree-optimization/58010 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove assert that we have a loop-closed PHI. * gcc.dg/pr58010.c: New testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@202095 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-vect-loop.c')
-rw-r--r--gcc/tree-vect-loop.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/tree-vect-loop.c b/gcc/tree-vect-loop.c
index 3e1cbb19bfd..e8a4ac1643b 100644
--- a/gcc/tree-vect-loop.c
+++ b/gcc/tree-vect-loop.c
@@ -4373,9 +4373,8 @@ vect_finalize_reduction:
if (!flow_bb_inside_loop_p (loop, gimple_bb (USE_STMT (use_p))))
phis.safe_push (USE_STMT (use_p));
- /* We expect to have found an exit_phi because of loop-closed-ssa
- form. */
- gcc_assert (!phis.is_empty ());
+ /* While we expect to have found an exit_phi because of loop-closed-ssa
+ form we can end up without one if the scalar cycle is dead. */
FOR_EACH_VEC_ELT (phis, i, exit_phi)
{