Commit c448fede by Richard Biener Committed by Richard Biener

tree-cfg.c (verify_gimple_assign_ternary): Properly verify the [VEC_]COND_EXPR embedded comparison.

2018-05-16  Richard Biener  <rguenther@suse.de>

	* tree-cfg.c (verify_gimple_assign_ternary): Properly
	verify the [VEC_]COND_EXPR embedded comparison.

From-SVN: r260283
parent 7ad491c6
2018-05-16 Richard Biener <rguenther@suse.de>
* tree-cfg.c (verify_gimple_assign_ternary): Properly
verify the [VEC_]COND_EXPR embedded comparison.
2018-05-15 Martin Sebor <msebor@redhat.com>
PR tree-optimization/85753
......
......@@ -4137,6 +4137,12 @@ verify_gimple_assign_ternary (gassign *stmt)
}
/* Fallthrough. */
case COND_EXPR:
if (!is_gimple_val (rhs1)
&& verify_gimple_comparison (TREE_TYPE (rhs1),
TREE_OPERAND (rhs1, 0),
TREE_OPERAND (rhs1, 1),
TREE_CODE (rhs1)))
return true;
if (!useless_type_conversion_p (lhs_type, rhs2_type)
|| !useless_type_conversion_p (lhs_type, rhs3_type))
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment