Commit 6be52f62 by Richard Biener Committed by Richard Biener

genmatch.c (dt_simplify::gen_1): For generic wrap all multi-result-use captures in a SAVE_EXPR.

2015-11-26  Richard Biener  <rguenther@suse.de>

	* genmatch.c (dt_simplify::gen_1): For generic wrap all
	multi-result-use captures in a SAVE_EXPR.

From-SVN: r230955
parent 3e0fb1a3
2015-11-26 Richard Biener <rguenther@suse.de>
* genmatch.c (dt_simplify::gen_1): For generic wrap all
multi-result-use captures in a SAVE_EXPR.
2015-11-26 Matthew Wahab <matthew.wahab@arm.com> 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
* config/aarch64/aarch64.h (AARCH64_ISA_RDMA): New. * config/aarch64/aarch64.h (AARCH64_ISA_RDMA): New.
...@@ -3112,16 +3112,10 @@ dt_simplify::gen_1 (FILE *f, int indent, bool gimple, operand *result) ...@@ -3112,16 +3112,10 @@ dt_simplify::gen_1 (FILE *f, int indent, bool gimple, operand *result)
{ {
if (cinfo.info[i].same_as != (unsigned)i) if (cinfo.info[i].same_as != (unsigned)i)
continue; continue;
if (!cinfo.info[i].force_no_side_effects_p if (cinfo.info[i].result_use_count > 1)
&& cinfo.info[i].result_use_count > 1) fprintf_indent (f, indent,
{ "captures[%d] = save_expr (captures[%d]);\n",
fprintf_indent (f, indent, i, i);
"if (TREE_SIDE_EFFECTS (captures[%d]))\n",
i);
fprintf_indent (f, indent,
" captures[%d] = save_expr (captures[%d]);\n",
i, i);
}
} }
for (unsigned j = 0; j < e->ops.length (); ++j) for (unsigned j = 0; j < e->ops.length (); ++j)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment