re PR tree-optimization/22484 (ICE: verify_stmts failed with -O3)
2005-07-25 Andrew Pinski <pinskia@physics.uc.edu> PR tree-opt/22484 * tree-ssa-ccp.c (fold_stmt_inplace): Strip useless type conversions after fold. * tree-ssa-propagate.c (set_rhs): Reject invalid conditional operands. 2005-07-25 Andrew Pinski <pinskia@physics.uc.edu> PR tree-opt/22484 * testsuite/g++.dg/opt/loop2.C: New test. From-SVN: r102369
This commit is contained in:
parent
c72f711f8a
commit
43e364dd78
4 changed files with 15 additions and 0 deletions
|
@ -1,3 +1,10 @@
|
|||
2005-07-25 Andrew Pinski <pinskia@physics.uc.edu>
|
||||
|
||||
PR tree-opt/22484
|
||||
* tree-ssa-ccp.c (fold_stmt_inplace): Strip useless type conversions
|
||||
after fold.
|
||||
* tree-ssa-propagate.c (set_rhs): Reject invalid conditional operands.
|
||||
|
||||
2005-07-25 Andrew Pinski <pinskia@physics.uc.edu>
|
||||
|
||||
* tree-ssa-reassoc.c (reassociate_expr): Allow scaler floating point
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
2005-07-25 Andrew Pinski <pinskia@physics.uc.edu>
|
||||
|
||||
PR tree-opt/22484
|
||||
* testsuite/g++.dg/opt/loop2.C: New test.
|
||||
|
||||
2005-07-25 Andrew Pinski <pinskia@physics.uc.edu>
|
||||
|
||||
* gcc.dg/tree-ssa/reassoc-3.c: New test.
|
||||
|
|
|
@ -2335,6 +2335,7 @@ fold_stmt_inplace (tree stmt)
|
|||
return changed;
|
||||
|
||||
new_rhs = fold (rhs);
|
||||
STRIP_USELESS_TYPE_CONVERSION (new_rhs);
|
||||
if (new_rhs == rhs)
|
||||
return changed;
|
||||
|
||||
|
|
|
@ -604,6 +604,8 @@ set_rhs (tree *stmt_p, tree expr)
|
|||
break;
|
||||
|
||||
case COND_EXPR:
|
||||
if (!is_gimple_condexpr (expr))
|
||||
return false;
|
||||
COND_EXPR_COND (stmt) = expr;
|
||||
break;
|
||||
case SWITCH_EXPR:
|
||||
|
|
Loading…
Add table
Reference in a new issue