On Sat, 29 Sep 2012, Marc Glisse wrote: > 1) it handles constant folding of vector comparisons, > > 2) it fixes another place where vectors are not expected Here is a new version of this patch. In a first try, I got bitten by the operator priorities in "a && b?c:d", which g++ doesn't warn about. 2012-10-12 Marc Glisse gcc/ * tree-ssa-forwprop.c (forward_propagate_into_cond): Handle vectors. * fold-const.c (fold_relational_const): Handle VECTOR_CST. gcc/testsuite/ * gcc.dg/tree-ssa/foldconst-6.c: New testcase. -- Marc Glisse