diff options
author | Zdenek Dvorak <ook@ucw.cz> | 2008-11-16 05:48:25 +0100 |
---|---|---|
committer | Zdenek Dvorak <rakdver@gcc.gnu.org> | 2008-11-16 04:48:25 +0000 |
commit | 4c533e5afee14d141caa6da2774857d6a65177c2 (patch) | |
tree | c46115811c8afcd96afd60884763cb83fe0bf81d | |
parent | 9ff8119f665ef8326373991a92576b0eb925ecf0 (diff) | |
download | gcc-4c533e5afee14d141caa6da2774857d6a65177c2.zip gcc-4c533e5afee14d141caa6da2774857d6a65177c2.tar.gz gcc-4c533e5afee14d141caa6da2774857d6a65177c2.tar.bz2 |
re PR tree-optimization/37950 (failure in polyhedron benchmark when ftree-parallelize-loops is enabled)
PR tree-optimization/37950
* tree-flow-inline.h (memory_partition): Return NULL when aliases were
not computed for the current function.
From-SVN: r141911
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/tree-flow-inline.h | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ea83a9e..6df0f7f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/tree-flow-inline.h b/gcc/tree-flow-inline.h index eefc983..aeba172 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 |