* tree-cfg.c (remove_useless_stmts_cond): Call fold on COND_EXPR_COND.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@92093
138bc75d-0d04-0410-961f-
82ee72b054a4
+2004-12-13 Andrew Pinski <pinskia@physics.uc.edu>
+
+ * tree-cfg.c (remove_useless_stmts_cond): Call fold on COND_EXPR_COND.
+
2004-12-13 Kazu Hirata <kazu@cs.umass.edu>
* tree-ssa-dom.c (record_equivalences_from_phis): Speed up by
then_clause = COND_EXPR_THEN (*stmt_p);
else_clause = COND_EXPR_ELSE (*stmt_p);
- cond = COND_EXPR_COND (*stmt_p);
+ cond = fold (COND_EXPR_COND (*stmt_p));
/* If neither arm does anything at all, we can remove the whole IF. */
if (!TREE_SIDE_EFFECTS (then_clause) && !TREE_SIDE_EFFECTS (else_clause))