re PR tree-optimization/86363 (wrong code with __builtin_memset() at -O1)
authorRichard Biener <rguenther@suse.de>
Mon, 2 Jul 2018 13:32:26 +0000 (13:32 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 2 Jul 2018 13:32:26 +0000 (13:32 +0000)
commit92590cd35f5e7b1c02a928069e54683f2e815914
tree9189339028165f8d46da2db490a92924b087dfa5
parent94ee1558a839de8bf20f4e89aebe8d1453fb6015
re PR tree-optimization/86363 (wrong code with __builtin_memset() at -O1)

2018-07-02  Richard Biener  <rguenther@suse.de>

PR tree-optimization/86363
* tree-ssa-sccvn.c (vn_reference_lookup_3): Check the
memset argument refers to a non-variable address.

* gcc.dg/torture/pr86363.c: New testcase.

From-SVN: r262307
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr86363.c [new file with mode: 0644]
gcc/tree-ssa-sccvn.c