re PR tree-optimization/89489 (ICE in gimple_duplicate_bb, at tree-cfg.c:6257)
authorRichard Biener <rguenther@suse.de>
Tue, 26 Feb 2019 11:03:45 +0000 (11:03 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 26 Feb 2019 11:03:45 +0000 (11:03 +0000)
2019-02-26  Richard Biener  <rguenther@suse.de>

PR tree-optimization/89489
* tree-parloops.c (create_loop_fn): Copy over last_clique.

From-SVN: r269210

gcc/ChangeLog
gcc/tree-parloops.c

index 263cc7b5f112c2f55205b69961852765bf9f03ed..0c961dd37d790a0135ee987c050acc3b8ad7d043 100644 (file)
@@ -1,3 +1,8 @@
+2019-02-26  Richard Biener  <rguenther@suse.de>
+
+       PR tree-optimization/89489
+       * tree-parloops.c (create_loop_fn): Copy over last_clique.
+
 2019-02-26  Eric Botcazou  <ebotcazou@adacore.com>
 
        * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
index 5f3c2b59e87b6b1f055897df580ccf2cf7961223..7124c5b1ab576c6d658d37b26708907b31392dd3 100644 (file)
@@ -1498,6 +1498,7 @@ create_loop_fn (location_t loc)
   DECL_ARGUMENTS (decl) = t;
 
   allocate_struct_function (decl, false);
+  DECL_STRUCT_FUNCTION (decl)->last_clique = act_cfun->last_clique;
 
   /* The call to allocate_struct_function clobbers CFUN, so we need to restore
      it.  */