summaryrefslogtreecommitdiff
path: root/gcc/tree-flow-inline.h
diff options
context:
space:
mode:
authorrakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4>2008-11-16 04:48:25 +0000
committerrakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4>2008-11-16 04:48:25 +0000
commitee799912f01a1f863234fb96e98bc504944f4f91 (patch)
treec46115811c8afcd96afd60884763cb83fe0bf81d /gcc/tree-flow-inline.h
parent393c778cf00fccafc74eda89877de0899f522c36 (diff)
downloadgcc-ee799912f01a1f863234fb96e98bc504944f4f91.tar.gz
PR tree-optimization/37950
* 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
Diffstat (limited to 'gcc/tree-flow-inline.h')
-rw-r--r--gcc/tree-flow-inline.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/tree-flow-inline.h b/gcc/tree-flow-inline.h
index eefc983190e..aeba17204f9 100644
--- a/gcc/tree-flow-inline.h
+++ b/gcc/tree-flow-inline.h
@@ -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