diff options
author | James E Wilson <wilson@specifixinc.com> | 2007-09-13 09:33:49 -0700 |
---|---|---|
committer | H.J. Lu <hjl@gcc.gnu.org> | 2007-09-13 09:33:49 -0700 |
commit | 468b40bcb95976311b1ed4f1b988d186b45dab49 (patch) | |
tree | 77f1250af8fe66ce7e3be34adb6fa4a17a6f614e /gcc/tree-ssa-operands.c | |
parent | f29adf5b7b4b43196cd98d95bdfed1b5a571a697 (diff) | |
download | gcc-468b40bcb95976311b1ed4f1b988d186b45dab49.zip gcc-468b40bcb95976311b1ed4f1b988d186b45dab49.tar.gz gcc-468b40bcb95976311b1ed4f1b988d186b45dab49.tar.bz2 |
re PR tree-optimization/33389 (Revision 128239 causes libgomp failure)
2007-09-13 James E. Wilson <wilson@specifix.com>
PR tree-optimization/33389
* tree-ssa-operands.c (append_vuse): If ann->in_vdef_list true,
then set build_loads before returning.
From-SVN: r128469
Diffstat (limited to 'gcc/tree-ssa-operands.c')
-rw-r--r-- | gcc/tree-ssa-operands.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gcc/tree-ssa-operands.c b/gcc/tree-ssa-operands.c index 3562e71..5c7a9e0 100644 --- a/gcc/tree-ssa-operands.c +++ b/gcc/tree-ssa-operands.c @@ -1164,8 +1164,15 @@ append_vuse (tree var) /* Don't allow duplicate entries. */ ann = get_var_ann (var); - if (ann->in_vuse_list || ann->in_vdef_list) + if (ann->in_vuse_list) return; + else if (ann->in_vdef_list) + { + /* We don't want a vuse if we already have a vdef, but we must + still put this in build_loads. */ + bitmap_set_bit (build_loads, DECL_UID (var)); + return; + } ann->in_vuse_list = true; sym = var; |