From 43e364dd78c5b744db0928190c83fdb2604ae245 Mon Sep 17 00:00:00 2001 From: Andrew Pinski Date: Mon, 25 Jul 2005 20:27:56 +0000 Subject: re PR tree-optimization/22484 (ICE: verify_stmts failed with -O3) 2005-07-25 Andrew Pinski 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 PR tree-opt/22484 * testsuite/g++.dg/opt/loop2.C: New test. From-SVN: r102369 --- gcc/tree-ssa-ccp.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gcc/tree-ssa-ccp.c') diff --git a/gcc/tree-ssa-ccp.c b/gcc/tree-ssa-ccp.c index 95a2fa1..829bba9 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; -- cgit v1.1