diff options
author | Richard Guenther <rguenther@suse.de> | 2011-09-09 12:31:33 +0000 |
---|---|---|
committer | Richard Guenther <rguenther@suse.de> | 2011-09-09 12:31:33 +0000 |
commit | f29cebea19072ab2d8f227620ead3fd263faae94 (patch) | |
tree | b3fe1c648fef261496c2c8ff5b18ae17aa2b0f3b /gcc/tree-ssa-pre.c | |
parent | 57d5ea75fca18d321f8154e120a9c0920ea81317 (diff) |
2011-09-09 Richard Guenther <rguenther@suse.de>
* tree-ssa-pre.c (create_expression_by_pieces): Fold the
last statement.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@178727 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-pre.c')
-rw-r--r-- | gcc/tree-ssa-pre.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/tree-ssa-pre.c b/gcc/tree-ssa-pre.c index f69aec0dd4d..bee6ef52c6c 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 |