re PR target/82703 (Wrong addition of std::array components with -O2 -ftree-loop...
authorJakub Jelinek <jakub@redhat.com>
Fri, 27 Oct 2017 12:20:55 +0000 (14:20 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 27 Oct 2017 12:20:55 +0000 (14:20 +0200)
commit76ff5c2403e918519f441b073a8b7c1053d62217
tree6d218d4046c82c2d4e633aca9a0db275174dd6d7
parent0348dd008a1cba97328011ea2ac93691522a558f
re PR target/82703 (Wrong addition of std::array components with -O2 -ftree-loop-vectorize -ftree-slp-vectorize (works fine with -O2))

PR target/82703
* config/i386/i386-protos.h (maybe_get_pool_constant): Removed.
* config/i386/i386.c (maybe_get_pool_constant): Removed.
(ix86_split_to_parts): Use avoid_constant_pool_reference instead of
maybe_get_pool_constant.
* config/i386/predicates.md (zero_extended_scalar_load_operand):
Likewise.

* gcc.dg/pr82703.c: New test.

From-SVN: r254145
gcc/ChangeLog
gcc/config/i386/i386-protos.h
gcc/config/i386/i386.c
gcc/config/i386/predicates.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr82703.c [new file with mode: 0644]