re PR tree-optimization/41728 (error: SSA name in freelist but still referenced)
2009-10-16 Richard Guenther <rguenther@suse.de> PR tree-optimization/41728 * tree-ssa-dom.c (optimize_stmt): Mark the stmt modified if fold_stmt did anything. * gcc.c-torture/compile/pr41728.c: New testcase. From-SVN: r152910
This commit is contained in:
parent
33662270d5
commit
076ba15715
4 changed files with 24 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
2009-10-16 Richard Guenther <rguenther@suse.de>
|
||||
|
||||
PR tree-optimization/41728
|
||||
* tree-ssa-dom.c (optimize_stmt): Mark the stmt modified
|
||||
if fold_stmt did anything.
|
||||
|
||||
2009-10-16 Richard Guenther <rguenther@suse.de>
|
||||
|
||||
PR lto/41715
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
2009-10-16 Richard Guenther <rguenther@suse.de>
|
||||
|
||||
PR tree-optimization/41728
|
||||
* gcc.c-torture/compile/pr41728.c: New testcase.
|
||||
|
||||
2009-10-16 Richard Guenther <rguenther@suse.de>
|
||||
|
||||
PR lto/41598
|
||||
|
|
12
gcc/testsuite/gcc.c-torture/compile/pr41728.c
Normal file
12
gcc/testsuite/gcc.c-torture/compile/pr41728.c
Normal file
|
@ -0,0 +1,12 @@
|
|||
int a[8];
|
||||
int s244(void)
|
||||
{
|
||||
int lrc, j;
|
||||
lrc = 0;
|
||||
for (j=0; j<7; j++)
|
||||
if(a[j] != a[j+1])
|
||||
lrc = 1;
|
||||
if (lrc != 0)
|
||||
return 0;
|
||||
return 1;
|
||||
}
|
|
@ -2099,6 +2099,7 @@ optimize_stmt (basic_block bb, gimple_stmt_iterator si)
|
|||
if (fold_stmt (&si))
|
||||
{
|
||||
stmt = gsi_stmt (si);
|
||||
gimple_set_modified (stmt, true);
|
||||
|
||||
if (dump_file && (dump_flags & TDF_DETAILS))
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue