From 0aa1658649796e0ba3e097d0db7013b027b8d41c Mon Sep 17 00:00:00 2001 From: Richard Guenther Date: Fri, 9 Sep 2011 12:31:33 +0000 Subject: tree-ssa-pre.c (create_expression_by_pieces): Fold the last statement. 2011-09-09 Richard Guenther * tree-ssa-pre.c (create_expression_by_pieces): Fold the last statement. From-SVN: r178727 --- gcc/tree-ssa-pre.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gcc/tree-ssa-pre.c') diff --git a/gcc/tree-ssa-pre.c b/gcc/tree-ssa-pre.c index f69aec0..bee6ef5 100644 --- a/gcc/tree-ssa-pre.c +++ b/gcc/tree-ssa-pre.c @@ -3182,6 +3182,10 @@ create_expression_by_pieces (basic_block block, pre_expr expr, /* All the symbols in NEWEXPR should be put into SSA form. */ mark_symbols_for_renaming (newstmt); + /* Fold the last statement. */ + gsi = gsi_last (*stmts); + fold_stmt_inplace (&gsi); + /* Add a value number to the temporary. The value may already exist in either NEW_SETS, or AVAIL_OUT, because we are creating the expression by pieces, and this particular piece of -- cgit v1.1