+2010-11-03 Richard Guenther <rguenther@suse.de>
+
+ PR middle-end/46288
+ * predict.c (strip_predict_hints): Simply DCE builtin expect if
+ the result is unused.
+
2010-11-03 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/46009
&& gimple_call_num_args (stmt) == 2)
{
var = gimple_call_lhs (stmt);
- ass_stmt = gimple_build_assign (var, gimple_call_arg (stmt, 0));
-
- gsi_replace (&bi, ass_stmt, true);
+ if (var)
+ {
+ ass_stmt
+ = gimple_build_assign (var, gimple_call_arg (stmt, 0));
+ gsi_replace (&bi, ass_stmt, true);
+ }
+ else
+ {
+ gsi_remove (&bi, true);
+ continue;
+ }
}
}
gsi_next (&bi);
+2010-11-03 Richard Guenther <rguenther@suse.de>
+
+ PR middle-end/46288
+ * gcc.dg/pr46288.c: New testcase.
+
2010-11-03 Richard Guenther <rguenther@suse.de>
PR tree-optimization/44807