diff options
author | Richard Biener <rguenther@suse.de> | 2013-03-27 10:38:29 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2013-03-27 10:38:29 +0000 |
commit | 7d24f650fa1886c29e2431c969e5b7e6f8a50836 (patch) | |
tree | 92e4267a0b2c2fc61b604712594ccbfdf4f9e8c9 /gcc/tree-ssa-structalias.c | |
parent | 173536ed5f1dffb39cd220678d9e246bbafd86f6 (diff) | |
download | gcc-7d24f650fa1886c29e2431c969e5b7e6f8a50836.zip gcc-7d24f650fa1886c29e2431c969e5b7e6f8a50836.tar.gz gcc-7d24f650fa1886c29e2431c969e5b7e6f8a50836.tar.bz2 |
re PR tree-optimization/37021 (Fortran Complex reduction / multiplication not vectorized)
2013-03-27 Richard Biener <rguenther@suse.de>
PR tree-optimization/37021
* tree-vect-data-refs.c (vect_check_strided_load): Allow
REALPART/IMAGPART_EXPRs around the supported refs.
* tree-ssa-structalias.c (find_func_aliases): Assume that
floating-point values are not used to transfer pointers.
* gfortran.dg/vect/fast-math-pr37021.f90: New testcase.
From-SVN: r197158
Diffstat (limited to 'gcc/tree-ssa-structalias.c')
-rw-r--r-- | gcc/tree-ssa-structalias.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/tree-ssa-structalias.c b/gcc/tree-ssa-structalias.c index 236b86a..c588e87 100644 --- a/gcc/tree-ssa-structalias.c +++ b/gcc/tree-ssa-structalias.c @@ -4631,7 +4631,11 @@ find_func_aliases (gimple origt) get_constraint_for (lhsop, &lhsc); - if (code == POINTER_PLUS_EXPR) + if (FLOAT_TYPE_P (TREE_TYPE (lhsop))) + /* If the operation produces a floating point result then + assume the value is not produced to transfer a pointer. */ + ; + else if (code == POINTER_PLUS_EXPR) get_constraint_for_ptr_offset (gimple_assign_rhs1 (t), gimple_assign_rhs2 (t), &rhsc); else if (code == BIT_AND_EXPR |