From e179190c0366ca882d4f7bcc33ea42d1cdcfed22 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Fri, 15 Nov 2013 14:43:52 +0000 Subject: tree-loop-distribution.c (tree_loop_distribution): Make sure to distribute all stores. 2013-11-15 Richard Biener * tree-loop-distribution.c (tree_loop_distribution): Make sure to distribute all stores. * gcc.dg/torture/20131115-1.c: New testcase. From-SVN: r204843 --- gcc/tree-loop-distribution.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gcc/tree-loop-distribution.c') diff --git a/gcc/tree-loop-distribution.c b/gcc/tree-loop-distribution.c index 331af04..0754877 100644 --- a/gcc/tree-loop-distribution.c +++ b/gcc/tree-loop-distribution.c @@ -1724,8 +1724,7 @@ tree_loop_distribution (void) if (stmt_has_scalar_dependences_outside_loop (loop, stmt)) ; /* Otherwise only distribute stores for now. */ - else if (!gimple_assign_single_p (stmt) - || is_gimple_reg (gimple_assign_lhs (stmt))) + else if (!gimple_vdef (stmt)) continue; work_list.safe_push (stmt); -- cgit v1.1