2020-02-18 Jakub Jelinek <jakub@redhat.com>
+ PR ipa/93797
+ * cgraph.c (verify_speculative_call): Use speculative_id instead of
+ speculative_uid in messages. Remove trailing whitespace from error
+ message. Use num_speculative_call_targets instead of
+ num_speculative_targets in a message.
+ (cgraph_node::verify_node): Use call_stmt instead of cal_stmt in
+ edge messages and stmt instead of cal_stmt in reference message.
+
PR tree-optimization/93780
* tree-ssa.c (non_rewritable_lvalue_p): Check valid_vector_subparts_p
before calling build_vector_type.
if (direct->speculative_id >= num)
{
error ("direct call to %s in speculative call sequence has "
- "speculative_uid %i out of range",
+ "speculative_id %i out of range",
direct->callee->dump_name (), direct->speculative_id);
return true;
}
if (direct_calls[direct->speculative_id])
{
error ("duplicate direct call to %s in speculative call sequence "
- "with speculative_uid %i",
+ "with speculative_id %i",
direct->callee->dump_name (), direct->speculative_id);
return true;
}
&& first_call != node->get_edge (first_call->call_stmt))
{
error ("call stmt hash does not point to first direct edge of "
- "speculative call sequence ");
+ "speculative call sequence");
return true;
}
if (ref->speculative_id >= num)
{
error ("direct call to %s in speculative call sequence has "
- "speculative_uid %i out of range",
+ "speculative_id %i out of range",
ref->referred->dump_name (), ref->speculative_id);
return true;
}
if (refs[ref->speculative_id])
{
error ("duplicate reference %s in speculative call sequence "
- "with speculative_uid %i",
+ "with speculative_id %i",
ref->referred->dump_name (), ref->speculative_id);
return true;
}
if (num_targets != indirect->num_speculative_call_targets_p ())
{
error ("number of speculative targets %i mismatched with "
- "num_speculative_targets %i",
+ "num_speculative_call_targets %i",
num_targets,
indirect->num_speculative_call_targets_p ());
return true;
}
if (e->call_stmt && e->lto_stmt_uid)
{
- error ("edge has both cal_stmt and lto_stmt_uid set");
+ error ("edge has both call_stmt and lto_stmt_uid set");
error_found = true;
}
}
}
if (e->call_stmt && e->lto_stmt_uid)
{
- error ("edge has both cal_stmt and lto_stmt_uid set");
+ error ("edge has both call_stmt and lto_stmt_uid set");
error_found = true;
}
if (e->speculative
{
if (ref->stmt && ref->lto_stmt_uid)
{
- error ("reference has both cal_stmt and lto_stmt_uid set");
+ error ("reference has both stmt and lto_stmt_uid set");
error_found = true;
}
if (ref->speculative