Add PR markers to recent DSE changes. And...

PR tree-optimization/86061
	* gcc.dg/tree-ssa/pr86061.c: New test.

From-SVN: r273745
This commit is contained in:
Jeff Law 2019-07-23 14:05:48 -06:00 committed by Jeff Law
parent 40768ee0bc
commit d8e54c6203
3 changed files with 27 additions and 0 deletions

View File

@ -400,6 +400,7 @@
2019-07-19 Jeff Law <law@redhat.com>
PR tree-optimization/86061
* tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
strncpy. Drop some trivial dead code.
(maybe_trim_memstar_call): Handle strncpy.

View File

@ -1,3 +1,8 @@
2019-07-23 Jeff Law <law@redhat.com>
PR tree-optimization/86061
* gcc.dg/tree-ssa/pr86061.c: New test.
2019-07-23 Richard Biener <rguenther@suse.de>
PR tree-optimization/83518
@ -176,6 +181,7 @@
2019-07-19 Jeff Law <law@redhat.com>
PR tree-optimization/86061
* gcc.dg/tree-ssa/ssa-dse-37.c: New test.
* gcc.dg/tree-ssa/ssa-dse-38.c: New test.

View File

@ -0,0 +1,20 @@
/* { dg-options "-O2 -fdump-tree-dse-details -fno-tree-fre" } */
struct S { int i; char n[128]; int j; };
void f (char*);
void g (struct S *p)
{
char a[sizeof p->n + 1];
__builtin_memset (a, 0, sizeof a); // dead store, can be eliminated
__builtin_strncpy (a, p->n, sizeof a - 1);
a[sizeof a - 1] = '\0';
f (a);
}
/* { dg-final { scan-tree-dump-times "Deleted dead call" 1 "dse1" } } */