This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/26629] tree load PRE does not work on array references
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Mar 2006 12:59:43 -0000
- Subject: [Bug tree-optimization/26629] tree load PRE does not work on array references
- References: <bug-26629-6528@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from pinskia at gcc dot gnu dot org 2006-03-10 12:59 -------
(In reply to comment #1)
> FRE handles this just fine, it is PRE which does not.
Let me clarify that comment, For FRE I am talking about code like:
typedef long dtype;
typedef dtype longarray[];
int g (longarray *array1, unsigned long i, dtype j)
{
if (!(*array1)[i])
j++;
if (j < (*array1)[i])
h();
return i;
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26629