diff options
author | Jakub Jelinek <jakub@redhat.com> | 2017-12-21 10:11:29 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2017-12-21 10:11:29 +0100 |
commit | c0cc00c4f0e806d28ef6ed25671c75626817176e (patch) | |
tree | 96de9ce0a7aa2e5bdfd3caba7293470f524e76d6 /gcc/optabs.c | |
parent | b1ccd09a7786c047a02f6eae42d431483be6a0ea (diff) | |
download | gcc-c0cc00c4f0e806d28ef6ed25671c75626817176e.zip gcc-c0cc00c4f0e806d28ef6ed25671c75626817176e.tar.gz gcc-c0cc00c4f0e806d28ef6ed25671c75626817176e.tar.bz2 |
re PR rtl-optimization/82973 (ICE in output_constant_pool_2, at varasm.c:3896 on aarch64)
PR rtl-optimization/82973
* emit-rtl.h (valid_for_const_vec_duplicate_p): Rename to ...
(valid_for_const_vector_p): ... this.
* emit-rtl.c (valid_for_const_vec_duplicate_p): Rename to ...
(valid_for_const_vector_p): ... this. Adjust function comment.
(gen_vec_duplicate): Adjust caller.
* optabs.c (expand_vector_broadcast): Likewise.
* simplify-rtx.c (simplify_const_unary_operation): Don't optimize into
CONST_VECTOR if some element isn't simplified valid_for_const_vector_p
constant.
(simplify_const_binary_operation): Likewise. Use CONST_FIXED_P macro
instead of GET_CODE == CONST_FIXED.
(simplify_subreg): Use CONST_FIXED_P macro instead of
GET_CODE == CONST_FIXED.
* gfortran.dg/pr82973.f90: New test.
From-SVN: r255938
Diffstat (limited to 'gcc/optabs.c')
-rw-r--r-- | gcc/optabs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/optabs.c b/gcc/optabs.c index 9fd0f82..225e955 100644 --- a/gcc/optabs.c +++ b/gcc/optabs.c @@ -377,7 +377,7 @@ expand_vector_broadcast (machine_mode vmode, rtx op) gcc_checking_assert (VECTOR_MODE_P (vmode)); - if (valid_for_const_vec_duplicate_p (vmode, op)) + if (valid_for_const_vector_p (vmode, op)) return gen_const_vec_duplicate (vmode, op); icode = optab_handler (vec_duplicate_optab, vmode); |