tree-into-ssa.c (pass_build_ssa::execute): Run update_address_taken before going...
authorRichard Biener <rguenther@suse.de>
Wed, 15 May 2019 12:57:32 +0000 (12:57 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 15 May 2019 12:57:32 +0000 (12:57 +0000)
2019-05-15  Richard Biener  <rguenther@suse.de>

* tree-into-ssa.c (pass_build_ssa::execute): Run
update_address_taken before going into SSA.

From-SVN: r271209

gcc/ChangeLog
gcc/tree-into-ssa.c

index 8ef2c8240be2c5992903490e9cb50e59d43564c4..8bb14cf131dbd07234e4b3cc38fb0de3edefa0e7 100644 (file)
@@ -1,3 +1,8 @@
+2019-05-15  Richard Biener  <rguenther@suse.de>
+
+       * tree-into-ssa.c (pass_build_ssa::execute): Run
+       update_address_taken before going into SSA.
+
 2019-05-15  Richard Biener  <rguenther@suse.de>
 
        * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
index 061521d20d5929e5adc2d8bf9272e4dc61074439..0ec2f56216ff85588201fc20f3b086932390b8b8 100644 (file)
@@ -2425,6 +2425,12 @@ pass_build_ssa::execute (function *fun)
   bitmap_head *dfs;
   basic_block bb;
 
+  /* Increase the set of variables we can rewrite into SSA form
+     by clearing TREE_ADDRESSABLE and setting DECL_GIMPLE_REG_P
+     and transform the IL to support this.  */
+  if (optimize)
+    execute_update_addresses_taken ();
+
   /* Initialize operand data structures.  */
   init_ssa_operands (fun);