This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/38497] PRE missing a load PRE which causes a loop to have two BBs
- From: "steven at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Mar 2010 10:57:32 -0000
- Subject: [Bug tree-optimization/38497] PRE missing a load PRE which causes a loop to have two BBs
- References: <bug-38497-6528@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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