https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61776
--- Comment #4 from wmi at google dot com --- Can we move the pure/const resetting loop to an earlier place: inside branch_prob , after instrument_edges and before gsi_commit_edge_inserts (where stmt_ends_bb_p is checked), so that gsi_commit_edge_inserts() which changes cfg could take reset const/pure flags into consideration?