OSDN Git Service

PR tree-optimization/19865
authordnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 16 Feb 2005 19:19:34 +0000 (19:19 +0000)
committerdnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 16 Feb 2005 19:19:34 +0000 (19:19 +0000)
* tree-optimize.c (init_tree_optimization_passes): Run
pass_may_alias after pass_sra.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@95113 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/tree-optimize.c

index cff547c..2139164 100644 (file)
@@ -1,3 +1,9 @@
+2005-02-16  Diego Novillo  <dnovillo@redhat.com>
+
+       PR tree-optimization/19865
+       * tree-optimize.c (init_tree_optimization_passes): Run
+       pass_may_alias after pass_sra.
+
 2005-02-16  Richard Henderson  <rth@redhat.com>
            Stuart Hastings  <stuart@apple.com>
 
index 8006a2c..a2b7697 100644 (file)
@@ -364,6 +364,10 @@ init_tree_optimization_passes (void)
   NEXT_PASS (pass_ch);
   NEXT_PASS (pass_profile);
   NEXT_PASS (pass_sra);
+  /* FIXME: SRA may generate arbitrary gimple code, exposing new
+     aliased and call-clobbered variables.  As mentioned below,
+     pass_may_alias should be a TODO item.  */
+  NEXT_PASS (pass_may_alias);
   NEXT_PASS (pass_rename_ssa_copies);
   NEXT_PASS (pass_dominator);
   NEXT_PASS (pass_redundant_phi);