* web.c (web_main): Do not set DF_RD_PRUNE_DEAD_DEFS flag.

From-SVN: r192413
This commit is contained in:
Jan Hubicka 2012-10-12 22:36:09 +02:00 committed by Jan Hubicka
parent 4a9ad29487
commit 46042c015e
4 changed files with 45 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2012-10-12 Jan Hubicka <jh@suse.cz>
* web.c (web_main): Do not set DF_RD_PRUNE_DEAD_DEFS flag.
2012-10-12 Aaron Gray <aaronngray.lists@gmail.com>
Diego Novillo <dnovillo@google.com>

View File

@ -1,3 +1,7 @@
2012-10-12 Jan Hubicka <jh@suse.cz>
* gcc.dg/webizer.c: New testcase.
2012-10-12 Janis Johnson <janisjo@codesourcery.com>
* gcc.dg/vect/pr48765.c: Skip for conflicting options, don't

View File

@ -0,0 +1,35 @@
/* { dg-do run } */
/* { dg-options "-O3 -funroll-loops" } */
typedef struct rowbox {
int startx ;
int endx ;
int endx1 ;
int startx2 ;
int ypos ;
int desiredL ;
} ROWBOX ;
ROWBOX rowArray1[2] ;
ROWBOX *rowArray = rowArray1;
int numRows = 2;
int row = 1;
int block = 0;
double ckt_size_factor ;
__attribute__ ((noinline))
configure2()
{
block = 0 ;
for( row = 1 ; row <= numRows ; row++ ) {
block++ ;
if( rowArray[row].endx1 > 0 ) {
block++ ;
}
}
}
main()
{
configure2();
}

View File

@ -313,7 +313,8 @@ web_main (void)
rtx insn;
df_set_flags (DF_NO_HARD_REGS + DF_EQ_NOTES);
df_set_flags (DF_RD_PRUNE_DEAD_DEFS);
/* We can not RD_PRUNE_DEAD_DEFS, because we care about REG_EQUAL
notes. */
df_chain_add_problem (DF_UD_CHAIN);
df_analyze ();
df_set_flags (DF_DEFER_INSN_RESCAN);