+2019-11-08 Richard Biener <rguenther@suse.de>
+
+ * genmatch.c (expr::gen_transform): Use the resimplify
+ member function instead of hard-coding the gimple_resimplifyN variant.
+ (dt_simplify::gen_1): Likewise.
+
2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
* tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
for (unsigned i = 0; i < ops.length (); ++i)
fprintf (f, ", _o%d[%u]", depth, i);
fprintf (f, ");\n");
+ fprintf_indent (f, indent, "tem_op.resimplify (lseq, valueize);\n");
fprintf_indent (f, indent,
- "gimple_resimplify%d (lseq, &tem_op, valueize);\n",
- ops.length ());
- fprintf_indent (f, indent,
- "_r%d = maybe_push_res_to_seq (&tem_op, lseq);\n",
- depth);
+ "_r%d = maybe_push_res_to_seq (&tem_op, lseq);\n", depth);
fprintf_indent (f, indent,
"if (!_r%d) return false;\n",
depth);
gimple_build w/o actually building the stmt. */
if (!is_predicate)
fprintf_indent (f, indent,
- "gimple_resimplify%d (lseq, res_op,"
- " valueize);\n", e->ops.length ());
+ "res_op->resimplify (lseq, valueize);\n");
}
else if (result->type == operand::OP_CAPTURE
|| result->type == operand::OP_C_EXPR)