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/29551] FAIL: gcc.dg/tree-ssa/pr26421.c scan-tree-dump-times V_MAY_DEF 1



------- Comment #1 from rguenth at gcc dot gnu dot org  2006-10-22 17:12 -------
I think it's ok again, but it shows one weakness of the current NONLOCAL
scheme:

foo ()
{
  struct Foo a;
  int D.1534;

<bb 2>:
  #   SFT.0_2 = V_MUST_DEF <SFT.0_1>;
  a.i = 1;
  #   SFT.0_6 = V_MAY_DEF <SFT.0_2>;
  #   NONLOCAL.6_7 = V_MAY_DEF <NONLOCAL.6_5>;
  bar (&a);
  #   VUSE <SFT.0_6>;
  D.1534_3 = a.i;
  return D.1534_3;

}

we should see that &a points to a and so no NONLOCAL var is necessary
here.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dberlin at gcc dot gnu dot
                   |                            |org


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


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