aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-alias.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2007-11-21 10:16:21 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2007-11-21 10:16:21 +0000
commit11948f6bac2949e7f8158c335e37bb30340d7f86 (patch)
tree879367eac8305c2ff29cf7a1cb2d0d4b0306c562 /gcc/tree-ssa-alias.c
parent2bf66d799ca2ce2dfe07f53eb6b47edf35d3cc67 (diff)
downloadgcc-11948f6bac2949e7f8158c335e37bb30340d7f86.zip
gcc-11948f6bac2949e7f8158c335e37bb30340d7f86.tar.gz
gcc-11948f6bac2949e7f8158c335e37bb30340d7f86.tar.bz2
re PR tree-optimization/34148 (Too many VOPs, too deep tree-ssa-sccvn.c recursion)
2007-11-21 Richard Guenther <rguenther@suse.de> PR tree-optimization/34148 * tree-ssa-structalias.c (create_variable_info_for): Do not use field-sensitive PTA for single-element structures. * tree-ssa-alias.c (create_overlap_variables_for): Do not create SFTs for single-element structures. From-SVN: r130329
Diffstat (limited to 'gcc/tree-ssa-alias.c')
-rw-r--r--gcc/tree-ssa-alias.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-ssa-alias.c b/gcc/tree-ssa-alias.c
index 7d6c0e1..13ec95b 100644
--- a/gcc/tree-ssa-alias.c
+++ b/gcc/tree-ssa-alias.c
@@ -3837,7 +3837,7 @@ create_overlap_variables_for (tree var)
TREE_TYPE (var));
/* Make sure to not create SFTs for structs we won't generate variable
infos for. See tree-ssa-structalias.c:create_variable_info_for (). */
- if (VEC_length (fieldoff_s, fieldstack) != 0
+ if (VEC_length (fieldoff_s, fieldstack) > 1
&& VEC_length (fieldoff_s, fieldstack) <= MAX_FIELDS_FOR_FIELD_SENSITIVE)
{
subvar_t *subvars;