2012-09-06 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 6 Sep 2012 09:13:08 +0000 (09:13 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 6 Sep 2012 09:13:08 +0000 (09:13 +0000)
* passes.c (execute_function_todo): Call compute_may_aliases
only if flag_tree_pta is set.

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

gcc/ChangeLog
gcc/passes.c

index 74ad7d2..ba42078 100644 (file)
@@ -1,3 +1,8 @@
+2012-09-06  Richard Guenther  <rguenther@suse.de>
+
+       * passes.c (execute_function_todo): Call compute_may_aliases
+       only if flag_tree_pta is set.
+
 2012-09-06  Andrew Pinski  <apinski@cavium.com>
 
        PR tree-opt/54494
index c2d8f08..9ad40bf 100644 (file)
@@ -1776,7 +1776,8 @@ execute_function_todo (void *data)
   if (flags & TODO_rebuild_alias)
     {
       execute_update_addresses_taken ();
-      compute_may_aliases ();
+      if (flag_tree_pta)
+       compute_may_aliases ();
     }
   else if (optimize && (flags & TODO_update_address_taken))
     execute_update_addresses_taken ();