* predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
some statements was removed.
From-SVN: r237199
+2016-06-07 Jan Hubicka <hubicka@ucw.cz>
+
+ * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
+ some statements was removed.
+
2016-06-08 Alan Hayward <alan.hayward@arm.com>
* tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
basic_block bb;
gimple *ass_stmt;
tree var;
+ bool changed = false;
FOR_EACH_BB_FN (bb, fun)
{
if (gimple_code (stmt) == GIMPLE_PREDICT)
{
gsi_remove (&bi, true);
+ changed = true;
continue;
}
else if (is_gimple_call (stmt))
&& gimple_call_internal_fn (stmt) == IFN_BUILTIN_EXPECT))
{
var = gimple_call_lhs (stmt);
+ changed = true;
if (var)
{
ass_stmt
gsi_next (&bi);
}
}
- return 0;
+ return changed ? TODO_cleanup_cfg : 0;
}
} // anon namespace