diff options
author | Jakub Jelinek <jakub@redhat.com> | 2019-07-04 06:49:22 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2019-07-04 06:49:22 +0200 |
commit | a59b2e42062f2d00fb44a008cd395d0b9590c631 (patch) | |
tree | f8d8ac70c034c6dc4a98d541ef803f302f331188 /gcc/explow.c | |
parent | 0e68d70b7fbf4533d7b5ccd84c439026062b1a0e (diff) | |
download | gcc-a59b2e42062f2d00fb44a008cd395d0b9590c631.zip gcc-a59b2e42062f2d00fb44a008cd395d0b9590c631.tar.gz gcc-a59b2e42062f2d00fb44a008cd395d0b9590c631.tar.bz2 |
re PR rtl-optimization/90756 (g++ ICE in convert_move, at expr.c:218 on i686 and s390x)
PR rtl-optimization/90756
* explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
for VECTOR_TYPE_P.
* gcc.dg/pr90756.c: New test.
From-SVN: r273036
Diffstat (limited to 'gcc/explow.c')
-rw-r--r-- | gcc/explow.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/gcc/explow.c b/gcc/explow.c index ba06458..aea7118 100644 --- a/gcc/explow.c +++ b/gcc/explow.c @@ -892,16 +892,7 @@ promote_ssa_mode (const_tree name, int *punsignedp) tree type = TREE_TYPE (name); int unsignedp = TYPE_UNSIGNED (type); - machine_mode mode = TYPE_MODE (type); - - /* Bypass TYPE_MODE when it maps vector modes to BLKmode. */ - if (mode == BLKmode) - { - gcc_assert (VECTOR_TYPE_P (type)); - mode = type->type_common.mode; - } - - machine_mode pmode = promote_mode (type, mode, &unsignedp); + machine_mode pmode = promote_mode (type, TYPE_MODE (type), &unsignedp); if (punsignedp) *punsignedp = unsignedp; |