diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-01-09 23:39:06 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-01-09 23:39:06 +0000 |
commit | cae1703940869ec8d7cec712024c7e2e4dd2cb86 (patch) | |
tree | 3376cef8332c75e667c4d25c2edd75bf0515e2de /gcc/tree-vect-data-refs.c | |
parent | 3515aad41a5922d303c8826296c89326340cb3eb (diff) | |
download | gcc-cae1703940869ec8d7cec712024c7e2e4dd2cb86.tar.gz |
PR middle-end/59670
* tree-vect-data-refs.c (vect_analyze_data_refs): Check
is_gimple_call before calling gimple_call_internal_p.
* gcc.dg/pr59670.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@206503 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-vect-data-refs.c')
-rw-r--r-- | gcc/tree-vect-data-refs.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/tree-vect-data-refs.c b/gcc/tree-vect-data-refs.c index ae9189cf476..165e41faff1 100644 --- a/gcc/tree-vect-data-refs.c +++ b/gcc/tree-vect-data-refs.c @@ -3320,9 +3320,10 @@ again: { gimple def = SSA_NAME_DEF_STMT (off); tree reft = TREE_TYPE (DR_REF (newdr)); - if (gimple_call_internal_p (def) - && gimple_call_internal_fn (def) - == IFN_GOMP_SIMD_LANE) + if (is_gimple_call (def) + && gimple_call_internal_p (def) + && (gimple_call_internal_fn (def) + == IFN_GOMP_SIMD_LANE)) { tree arg = gimple_call_arg (def, 0); gcc_assert (TREE_CODE (arg) == SSA_NAME); |