------- Additional Comments From law at redhat dot com  2005-09-20 15:11 -------
Subject: Re:  [4.1 Regression] ICE with -O3
        -ftree-vectorize on 4.1.x

On Sun, 2005-09-18 at 15:59 +0000, steven at gcc dot gnu dot org wrote:
> ------- Additional Comments From steven at gcc dot gnu dot org  2005-09-18 
> 15:59 -------
> Actually fold_stmt has nothing to do with it.  It is fold (cached_lhs) in 
> trhead_across_edge that is the problem here.  Jeff, what do you think about 
> this patch? 
Presumably COND_EXPR on the RHS of a statement is the only special case
that we need to worry about.  I can't immediately think of others.

Seems pretty reasonable, in the case were the COND_EXPR_COND does not
fold, you could safely set pre_fold_lhs to TREE_OPERAND (stmt, 1) which
would allow us to catch cases where the THEN/ELSE clauses of the 
COND_EXPR are equivalent due to substitutions.  But I doubt it's
terribly important.

You might use pre_fold_expr rather than pre_fold_lhs which is a little
confusing since we're looking at the RHS of a statement :-)

jeff





-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23049

Reply via email to