diff options
author | Dorit Nuzman <dorit@il.ibm.com> | 2007-07-12 14:42:08 +0000 |
---|---|---|
committer | Dorit Nuzman <dorit@gcc.gnu.org> | 2007-07-12 14:42:08 +0000 |
commit | 5b900a4c0ee38a66b04b4ceeecb8b194ddde7e57 (patch) | |
tree | 1d606e4397ee32cd9fe29b0165fe91119ff4fbc6 /gcc/target.h | |
parent | 2df6377e6e01046582d489ae59b5be1371b42d59 (diff) | |
download | gcc-5b900a4c0ee38a66b04b4ceeecb8b194ddde7e57.zip gcc-5b900a4c0ee38a66b04b4ceeecb8b194ddde7e57.tar.gz gcc-5b900a4c0ee38a66b04b4ceeecb8b194ddde7e57.tar.bz2 |
re PR target/25413 (wrong alignment or incorrect address computation in vectorized code on Pentium 4 SSE)
2007-07-12 Dorit Nuzman <dorit@il.ibm.com>
Devang Patel <dpatel@apple.com>
PR tree-optimization/25413
* targhooks.c (default_builtin_vector_alignment_reachable): New.
* targhooks.h (default_builtin_vector_alignment_reachable): New.
* tree.h (contains_packed_reference): New.
* expr.c (contains_packed_reference): New.
* tree-vect-analyze.c (vector_alignment_reachable_p): New.
(vect_enhance_data_refs_alignment): Call
vector_alignment_reachable_p.
* target.h (vector_alignment_reachable): New builtin.
* target-def.h (TARGET_VECTOR_ALIGNMENT_REACHABLE): New.
* config/rs6000/rs6000.c (rs6000_vector_alignment_reachable): New.
(TARGET_VECTOR_ALIGNMENT_REACHABLE): Define.
Co-Authored-By: Devang Patel <dpatel@apple.com>
From-SVN: r126591
Diffstat (limited to 'gcc/target.h')
-rw-r--r-- | gcc/target.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/target.h b/gcc/target.h index 56c99bf..e196809 100644 --- a/gcc/target.h +++ b/gcc/target.h @@ -417,6 +417,10 @@ struct gcc_target /* Returns the cost to be added to the overheads involved with executing the vectorized version of a loop. */ int (*builtin_vectorization_cost) (bool); + + /* Return true if vector alignment is reachable (by peeling N + interations) for the given type. */ + bool (* vector_alignment_reachable) (tree, bool); } vectorize; /* The initial value of target_flags. */ |