Commit c87cc0c0 by Richard Biener Committed by Richard Biener

re PR tree-optimization/87609 (miscompilation with restrict and loop)

2019-02-22  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/87609
	* tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.

From-SVN: r269127
parent eb319c50
2019-02-22 Richard Biener <rguenther@suse.de>
PR tree-optimization/87609
* tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
2019-02-22 Jeff Law <law@redhat.com>
PR rtl-optimization/87761
......
......@@ -6229,6 +6229,8 @@ gimple_duplicate_bb (basic_block bb, copy_bb_data *id)
DECL_NONSHAREABLE (base) = 1;
}
/* If requested remap dependence info of cliques brought in
via inlining. */
if (id)
for (unsigned i = 0; i < gimple_num_ops (copy); ++i)
{
......@@ -6242,7 +6244,7 @@ gimple_duplicate_bb (basic_block bb, copy_bb_data *id)
op = TREE_OPERAND (op, 0);
if ((TREE_CODE (op) == MEM_REF
|| TREE_CODE (op) == TARGET_MEM_REF)
&& MR_DEPENDENCE_CLIQUE (op) != 0)
&& MR_DEPENDENCE_CLIQUE (op) > 1)
{
if (!id->dependence_map)
id->dependence_map = new hash_map<dependence_hash,
......
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