re PR tree-optimization/21532 (ICE caused by PRE dead instruction removal)
2005-05-12 Daniel Berlin <dberlin@dberlin.org> Fix PR tree-optimization/21532 * tree-ssa-pre.c (create_expression_by_pieces): stmt needs to go onto the inserted_exprs list. From-SVN: r99617
This commit is contained in:
parent
feea5b18cc
commit
7cc70b5e3c
2 changed files with 8 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
2005-05-12 Daniel Berlin <dberlin@dberlin.org>
|
||||
|
||||
Fix PR tree-optimization/21532
|
||||
* tree-ssa-pre.c (create_expression_by_pieces): stmt
|
||||
needs to go onto the inserted_exprs list.
|
||||
|
||||
2005-05-12 Ian Lance Taylor <ian@airs.com>
|
||||
|
||||
* c-common.h (statement_code_p): Don't declare.
|
||||
|
|
|
@ -1369,6 +1369,8 @@ create_expression_by_pieces (basic_block block, tree expr, tree stmts)
|
|||
tree forcedname = TREE_OPERAND (stmt, 0);
|
||||
tree forcedexpr = TREE_OPERAND (stmt, 1);
|
||||
tree val = vn_lookup_or_add (forcedexpr, NULL);
|
||||
|
||||
VEC_safe_push (tree, heap, inserted_exprs, stmt);
|
||||
vn_add (forcedname, val, NULL);
|
||||
bitmap_value_replace_in_set (NEW_SETS (block), forcedname);
|
||||
bitmap_value_replace_in_set (AVAIL_OUT (block), forcedname);
|
||||
|
|
Loading…
Add table
Reference in a new issue