This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/29551] FAIL: gcc.dg/tree-ssa/pr26421.c scan-tree-dump-times V_MAY_DEF 1
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Oct 2006 17:12:47 -0000
- Subject: [Bug tree-optimization/29551] FAIL: gcc.dg/tree-ssa/pr26421.c scan-tree-dump-times V_MAY_DEF 1
- References: <bug-29551-276@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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