And I forgot to update the copying to not copy non-inlined cliques...
Bootstrap / regtest running on x86_64-unknown-linux-gnu. Richard. 2019-02-22 Richard Biener <rguent...@suse.de> PR tree-optimization/87609 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques. Index: gcc/tree-cfg.c =================================================================== --- gcc/tree-cfg.c (revision 269111) +++ gcc/tree-cfg.c (working copy) @@ -6229,6 +6229,8 @@ gimple_duplicate_bb (basic_block bb, cop 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, cop 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,