2015-06-08 Marc Glisse <marc.glisse@inria.fr>
* genmatch.c (expr::gen_transform): For conditions, guess the type
from the second operand.
From-SVN: r224220
+2015-06-08 Marc Glisse <marc.glisse@inria.fr>
+
+ * genmatch.c (expr::gen_transform): For conditions, guess the type
+ from the second operand.
+
2015-06-08 Tom de Vries <tom@codesourcery.com>
PR tree-optimization/66442
sprintf (optype, "boolean_type_node");
type = optype;
}
+ else if (*operation == COND_EXPR
+ || *operation == VEC_COND_EXPR)
+ {
+ /* Conditions are of the same type as their first alternative. */
+ sprintf (optype, "TREE_TYPE (ops%d[1])", depth);
+ type = optype;
+ }
else
{
/* Other operations are of the same type as their first operand. */