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 middle-end/36201] [4.4 Regression] NVR in the front-end causes missed optimization later on (<retval> thought to alias arguments)



------- Comment #6 from rguenth at gcc dot gnu dot org  2009-01-05 11:19 -------
Fixed on the alias-improvements branch:

a f(a&, a&) (struct a & g, struct a & h)
{
  long long int pretmp.24;

<bb 2>:
  # .MEM_12 = VDEF <.MEM_11(D)>
  <retval> = *g;
  # VUSE <.MEM_12>
  pretmp.24 = h->b;
  # .MEM_7 = VDEF <.MEM_12>
  <retval>.b = [plus_expr] (pretmp.24 + <retval>.b) + pretmp.24 * 1023;
  # VUSE <.MEM_7>
  return <retval>;

}


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  BugsThisDependsOn|                            |37696
           Priority|P3                          |P2


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


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