[Bug tree-optimization/26629] tree load PRE does not work on array references

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri Mar 10 12:59:00 GMT 2006



------- 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



More information about the Gcc-bugs mailing list