diff options
author | Andrew Pinski <pinskia@physics.uc.edu> | 2005-07-25 20:27:56 +0000 |
---|---|---|
committer | Andrew Pinski <pinskia@gcc.gnu.org> | 2005-07-25 13:27:56 -0700 |
commit | 43e364dd78c5b744db0928190c83fdb2604ae245 (patch) | |
tree | 95af83338043ad6f9f3ac3833642a6d7b65f5c43 /gcc/tree-ssa-ccp.c | |
parent | c72f711f8aa995eef830a3189fd0ca65c663544e (diff) | |
download | gcc-43e364dd78c5b744db0928190c83fdb2604ae245.tar.gz |
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
Diffstat (limited to 'gcc/tree-ssa-ccp.c')
-rw-r--r-- | gcc/tree-ssa-ccp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/tree-ssa-ccp.c b/gcc/tree-ssa-ccp.c index 95a2fa13864..829bba94132 100644 --- a/gcc/tree-ssa-ccp.c +++ b/gcc/tree-ssa-ccp.c @@ -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; |