re PR tree-optimization/89489 (ICE in gimple_duplicate_bb, at tree-cfg.c:6257)

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
This commit is contained in:
Richard Biener 2019-02-26 11:03:45 +00:00 committed by Richard Biener
parent cf02f8a350
commit 302fe7500a
2 changed files with 6 additions and 0 deletions

View 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

View 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. */