]> git.ipfire.org Git - thirdparty/gcc.git/commit
sccvn: Punt on ref->size not multiple of 8 for memset (, 123, ) in 9.x [PR93945]
authorJakub Jelinek <jakub@redhat.com>
Thu, 27 Feb 2020 10:21:52 +0000 (11:21 +0100)
committerJakub Jelinek <jakub@redhat.com>
Thu, 27 Feb 2020 10:21:52 +0000 (11:21 +0100)
commita460bf38dc3582ce1f559cc84084ca27e429b34c
treefba819d56c7fea1ce344df663cb2465a674b4e2b
parent526fadb010978c63dd06c0a85da3c4e1b5b1c63d
sccvn: Punt on ref->size not multiple of 8 for memset (, 123, ) in 9.x [PR93945]

And here is the corresponding 9.x change where we the patch just punts if
ref->size is not whole bytes, like we already punt if offseti is not byte
aligned.

2020-02-27  Jakub Jelinek  <jakub@redhat.com>

PR tree-optimization/93945
* tree-ssa-sccvn.c (vn_reference_lookup_3): For memset with non-zero
second operand, require ref->size to be a multiple of BITS_PER_UNIT.

* gcc.c-torture/execute/pr93945.c: New test.
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr93945.c [new file with mode: 0644]
gcc/tree-ssa-sccvn.c