* cfgrtl.c (rtl_flow_call_edges_add): Update profile.
* tree-cfg.c (gimple_flow_call_edges_add): Likewise.
* profile-count.h (max_safe_multiplier): Make unsigned.
(profile_count::guessed_zero): New.
From-SVN: r249869
+2017-07-01 Jan Hubicka <hubicka@ucw.cz>
+
+ * cfgrtl.c (rtl_flow_call_edges_add): Update profile.
+ * tree-cfg.c (gimple_flow_call_edges_add): Likewise.
+ * profile-count.h (max_safe_multiplier): Make unsigned.
+ (profile_count::guessed_zero): New.
+
2017-07-01 Jan Hubicka <hubicka@ucw.cz>
* bb-reorder.c (fix_up_crossing_landing_pad,
blocks_split++;
}
- make_edge (bb, EXIT_BLOCK_PTR_FOR_FN (cfun), EDGE_FAKE);
+ edge ne = make_edge (bb, EXIT_BLOCK_PTR_FOR_FN (cfun), EDGE_FAKE);
+ ne->probability = profile_probability::guessed_never ();
+ ne->count = profile_count::guessed_zero ();
}
if (insn == BB_HEAD (bb))
/* Assume numbers smaller than this to multiply. This is set to make
testsuite pass, in future we may implement precise multiplication in higer
rangers. */
- static const int64_t max_safe_multiplier = 131072;
+ static const uint64_t max_safe_multiplier = 131072;
public:
/* Used for counters which are expected to be never executed. */
{
return from_gcov_type (0);
}
+ static profile_count guessed_zero ()
+ {
+ profile_count c;
+ c.m_val = 0;
+ c.m_quality = profile_guessed;
+ return c;
+ }
static profile_count one ()
{
return from_gcov_type (1);
if (e)
blocks_split++;
}
- make_edge (bb, EXIT_BLOCK_PTR_FOR_FN (cfun), EDGE_FAKE);
+ e = make_edge (bb, EXIT_BLOCK_PTR_FOR_FN (cfun), EDGE_FAKE);
+ e->probability = profile_probability::guessed_never ();
+ e->count = profile_count::guessed_zero ();
}
gsi_prev (&gsi);
}
}
if (blocks_split)
- verify_flow_info ();
+ checking_verify_flow_info ();
return blocks_split;
}