OSDN Git Service

PR tree-optimization/37950
authorrakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 16 Nov 2008 04:48:25 +0000 (04:48 +0000)
committerrakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 16 Nov 2008 04:48:25 +0000 (04:48 +0000)
* tree-flow-inline.h (memory_partition): Return NULL when aliases were
not computed for the current function.

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

gcc/ChangeLog
gcc/tree-flow-inline.h

index ea83a9e..6df0f7f 100644 (file)
@@ -1,3 +1,9 @@
+2008-11-15  Zdenek Dvorak  <ook@ucw.cz>
+
+       PR tree-optimization/37950
+       * tree-flow-inline.h (memory_partition): Return NULL when aliases were
+       not computed for the current function.
+
 2008-11-15  Jakub Jelinek  <jakub@redhat.com>
 
        PR target/38123
index eefc983..aeba172 100644 (file)
@@ -644,6 +644,12 @@ memory_partition (tree sym)
     return sym;
 
   gcc_assert (!is_gimple_reg (sym));
+  /* Autoparallelization moves statements from the original function (which has
+     aliases computed) to the new one (which does not).  When rebuilding
+     operands for the statement in the new function, we do not want to
+     record the memory partition tags of the original function.  */
+  if (!gimple_aliases_computed_p (cfun))
+    return NULL_TREE;
   tag = get_var_ann (sym)->mpt;
 
 #if defined ENABLE_CHECKING