diff options
author | Martin Jambor <mjambor@suse.cz> | 2013-03-27 15:06:58 +0100 |
---|---|---|
committer | Martin Jambor <jamborm@gcc.gnu.org> | 2013-03-27 15:06:58 +0100 |
commit | b37a6ce50960a9125c6da5d8e7256a83afe3d294 (patch) | |
tree | 4d43b2277fb5d878ba4fe9f099a634bd9ad43f5f /gcc | |
parent | 9469b9b27bc826e71573195d55fd82b7e97ffb38 (diff) | |
download | gcc-b37a6ce50960a9125c6da5d8e7256a83afe3d294.zip gcc-b37a6ce50960a9125c6da5d8e7256a83afe3d294.tar.gz gcc-b37a6ce50960a9125c6da5d8e7256a83afe3d294.tar.bz2 |
re PR tree-optimization/55334 (mgrid regression (ipa-cp disables vectorization))
2013-03-27 Martin Jambor <mjambor@suse.cz>
PR tree-optimization/55334
* ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
restricted pointers to arrays.
From-SVN: r197163
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/ipa-cp.c | 16 |
2 files changed, 6 insertions, 16 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0039342..9b94c55 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2013-03-27 Martin Jambor <mjambor@suse.cz> + + PR tree-optimization/55334 + * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to + restricted pointers to arrays. + 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net> * Makefile.in (.SUFFIXES): Add .cc. diff --git a/gcc/ipa-cp.c b/gcc/ipa-cp.c index 3545ed1..aac21ce 100644 --- a/gcc/ipa-cp.c +++ b/gcc/ipa-cp.c @@ -730,22 +730,6 @@ initialize_node_lattices (struct cgraph_node *node) cgraph_node_name (node), node->uid, disable ? "BOTTOM" : "VARIABLE"); } - if (!disable) - for (i = 0; i < ipa_get_param_count (info) ; i++) - { - struct ipcp_param_lattices *plats = ipa_get_parm_lattices (info, i); - tree t = TREE_TYPE (ipa_get_param(info, i)); - - if (POINTER_TYPE_P (t) && TYPE_RESTRICT (t) - && TREE_CODE (TREE_TYPE (t)) == ARRAY_TYPE) - { - set_lattice_to_bottom (&plats->itself); - if (dump_file && (dump_flags & TDF_DETAILS) - && !node->alias && !node->thunk.thunk_p) - fprintf (dump_file, "Going to ignore param %i of of %s/%i.\n", - i, cgraph_node_name (node), node->uid); - } - } for (ie = node->indirect_calls; ie; ie = ie->next_callee) if (ie->indirect_info->polymorphic) |