This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/38497] PRE missing a load PRE which causes a loop to have two BBs



------- Comment #4 from steven at gcc dot gnu dot org  2010-03-03 10:57 -------
I think pinskia means we could transform the test case of comment #0 to:

void DoHuffIteration(int);
int f(int *a)
{
  int i;
  int plaintextlen=*a;
  pretmp = plaintextlen;
  for(i = 0; i< 10000; i++)
     {
       DoHuffIteration(pretmp);
       pretmp = *a;
      }
  return pretmp - plaintextlen;
}

which makes this PRE, not hoisting.


-- 

steven at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|stevenb dot gcc at gmail dot|
                   |com                         |
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2010-03-03 10:57:32
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38497


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]