OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [g++.dg/] [opt/] [pr19768.C] - Diff between revs 301 and 384

Only display areas with differences | Details | Blame | View Log

Rev 301 Rev 384
//  PR tree-opt/19768
//  PR tree-opt/19768
// tree DSE was removing one store to LL.currentLevel
// tree DSE was removing one store to LL.currentLevel
//  but forgot that since the vop was in an abnormal PHI
//  but forgot that since the vop was in an abnormal PHI
//  that we have to update the SSA_NAME which we propagate
//  that we have to update the SSA_NAME which we propagate
//  into the abnormal PHI
//  into the abnormal PHI
// { dg-do compile }
// { dg-do compile }
// { dg-options "-O" }
// { dg-options "-O" }
struct LeveLogger
struct LeveLogger
{
{
  int currentLevel;
  int currentLevel;
};
};
extern LeveLogger LL;
extern LeveLogger LL;
struct gg
struct gg
{
{
  ~gg ( void )
  ~gg ( void )
    { LL.currentLevel = 1; }
    { LL.currentLevel = 1; }
};
};
void f(void);
void f(void);
void g ( void )
void g ( void )
{
{
  gg sll;
  gg sll;
  {
  {
    gg sll;
    gg sll;
    f();
    f();
  }
  }
  f();
  f();
}
}
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.