2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
+ * tree-vrp.c (dump_asserts_for): Print loc->expr instead of
+ name.
+ (extract_code_and_val_from_cond_with_ops): Verify that name is
+ either cond_op0 or cond_op1.
+
+2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
+
PR tree-optimization/18046
* genmodes.c (emit_mode_size_inline): Emit an assert that
verifies that mode is a valid array index.
dump_edge_info (file, loc->e, dump_flags, 0);
}
fprintf (file, "\n\tPREDICATE: ");
- print_generic_expr (file, name, 0);
+ print_generic_expr (file, loc->expr, 0);
fprintf (file, " %s ", get_tree_code_name (loc->comp_code));
print_generic_expr (file, loc->val, 0);
fprintf (file, "\n\n");
comp_code = swap_tree_comparison (cond_code);
val = cond_op0;
}
- else
+ else if (name == cond_op0)
{
/* The comparison is of the form NAME COMP VAL, so the
comparison code remains unchanged. */
comp_code = cond_code;
val = cond_op1;
}
+ else
+ gcc_unreachable ();
/* Invert the comparison code as necessary. */
if (invert)