From 81bfd1977ac6a45d790a48603e38d335eb0a8a36 Mon Sep 17 00:00:00 2001 From: Michael Matz Date: Thu, 26 Jan 2012 15:50:33 +0000 Subject: re PR tree-optimization/46590 (long compile time with -O2 and many loops) PR tree-optimization/46590 * cfgexpand.c: Revert last change (r183305). * gimplify.c (gimplify_bind_expr): Add clobbers for all non-gimple regs. * tree-eh.c (cleanup_empty_eh): Try to optimize clobbers before checking for emptiness. From-SVN: r183566 --- gcc/gimplify.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/gimplify.c') diff --git a/gcc/gimplify.c b/gcc/gimplify.c index 99ae5ee..782adc3 100644 --- a/gcc/gimplify.c +++ b/gcc/gimplify.c @@ -1231,7 +1231,7 @@ gimplify_bind_expr (tree *expr_p, gimple_seq *pre_p) && !DECL_HAS_VALUE_EXPR_P (t) /* Only care for variables that have to be in memory. Others will be rewritten into SSA names, hence moved to the top-level. */ - && needs_to_live_in_memory (t)) + && !is_gimple_reg (t)) { tree clobber = build_constructor (TREE_TYPE (t), NULL); TREE_THIS_VOLATILE (clobber) = 1; -- cgit v1.1