re PR middle-end/68117 (error: invalid PHI argument <<< Unknown tree: <invalid tree...
authorRichard Biener <rguenther@suse.de>
Mon, 16 Nov 2015 14:06:08 +0000 (14:06 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 16 Nov 2015 14:06:08 +0000 (14:06 +0000)
2015-11-16  Richard Biener  <rguenther@suse.de>

PR middle-end/68117
* cfgexpand.c (pass_expand::execute): Destroy the edge
redirection var map before setting RTL CFG hooks.

From-SVN: r230424

gcc/ChangeLog
gcc/cfgexpand.c

index d106f52..2bba119 100644 (file)
@@ -1,3 +1,9 @@
+2015-11-16  Richard Biener  <rguenther@suse.de>
+
+       PR middle-end/68117
+       * cfgexpand.c (pass_expand::execute): Destroy the edge
+       redirection var map before setting RTL CFG hooks.
+
 2015-11-16  Alan Lawrence  <alan.lawrence@arm.com>
 
        * config/i386/sse.md (reduc_splus_v8df): Rename to...
index ae89352..e55467a 100644 (file)
@@ -6275,6 +6275,9 @@ pass_expand::execute (function *fun)
 
   expand_phi_nodes (&SA);
 
+  /* Release any stale SSA redirection data.  */
+  redirect_edge_var_map_destroy ();
+
   /* Register rtl specific functions for cfg.  */
   rtl_register_cfg_hooks ();