summaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-propagate.c
diff options
context:
space:
mode:
authorpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>2005-07-25 20:27:56 +0000
committerpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>2005-07-25 20:27:56 +0000
commitff09445d11169aacc7bb136975eb360a4488fe9f (patch)
tree95af83338043ad6f9f3ac3833642a6d7b65f5c43 /gcc/tree-ssa-propagate.c
parent79572849a4c774bc74e18a5c43069493c130b54a (diff)
downloadgcc-ff09445d11169aacc7bb136975eb360a4488fe9f.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@102369 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-propagate.c')
-rw-r--r--gcc/tree-ssa-propagate.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/tree-ssa-propagate.c b/gcc/tree-ssa-propagate.c
index 07b13e3fa5f..ced23dfb5b6 100644
--- a/gcc/tree-ssa-propagate.c
+++ b/gcc/tree-ssa-propagate.c
@@ -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: