gimple-fold.c (replace_stmt_with_simplification): Properly fail when maybe_push_res_to_seq fails.

2014-12-04  Richard Biener  <rguenther@suse.de>

	* gimple-fold.c (replace_stmt_with_simplification): Properly
	fail when maybe_push_res_to_seq fails.

From-SVN: r218353
This commit is contained in:
Richard Biener 2014-12-04 12:35:42 +00:00 committed by Richard Biener
parent 79c6bb5f20
commit de665bbd93
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2014-12-04 Richard Biener <rguenther@suse.de>
* gimple-fold.c (replace_stmt_with_simplification): Properly
fail when maybe_push_res_to_seq fails.
2014-12-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
* config/aarch64/aarch64.md (define_insn "prefetch"): New.

View File

@ -3345,8 +3345,9 @@ replace_stmt_with_simplification (gimple_stmt_iterator *gsi,
if (gimple_has_lhs (stmt))
{
tree lhs = gimple_get_lhs (stmt);
maybe_push_res_to_seq (rcode, TREE_TYPE (lhs),
ops, seq, lhs);
if (!maybe_push_res_to_seq (rcode, TREE_TYPE (lhs),
ops, seq, lhs))
return false;
if (dump_file && (dump_flags & TDF_DETAILS))
{
fprintf (dump_file, "gimple_simplified to ");