re PR target/70574 (wrong code with -mavx2, read of partially initialised stack variable)
authorJakub Jelinek <jakub@redhat.com>
Fri, 8 Apr 2016 17:21:17 +0000 (19:21 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 8 Apr 2016 17:21:17 +0000 (19:21 +0200)
commit1a13c0a284eaa74f40c10f387034173bfe3a426b
treef47617c05c49b8453a2dd2c38ceccc147ce33913
parent9dbe3d77fd1536c986e1b1dc1e8908fbdf3daf82
re PR target/70574 (wrong code with -mavx2, read of partially initialised stack variable)

PR rtl-optimization/70574
* fwprop.c (forward_propagate_and_simplify): Don't add
REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
(try_fwprop_subst): Don't add REG_EQUAL note if there are any
paradoxical subregs within *loc.

* gcc.target/i386/avx2-pr70574.c: New test.

From-SVN: r234833
gcc/ChangeLog
gcc/fwprop.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/avx2-pr70574.c [new file with mode: 0644]