This is the mail archive of the gcc@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]

Re: Another case of DCE deleting live code


On Mon, Nov 01, 2004 at 06:21:18PM -0500, Richard Kenner wrote:
> Note the assignment to FRAME.2.proc2GP222___b1 and that it gets deleted,
> but it's very much not dead!

Hmm?

>   #   FRAME.2_2 = V_MAY_DEF <FRAME.2_1>;
>   FRAME.2.proc2GP222__b1 = "ABCD";
>   CHAIN.3_3 = &FRAME.2;
>   proc2GP222__b1.0_4 = &CHAIN.3_3->proc2GP222__b1;
>   proc2GP222__b1.1_5 = (character[1 .. 4] *) proc2GP222__b1.0_4;
>   #   TMT.5_8 = V_MAY_DEF <TMT.5_7>;
>   D.410_6 = __builtin_memcmp ("ABCD", proc2GP222__b1.1_5, 4);
>   if (D.410_6 != 0) goto <L0>; else goto <L3>;

In what way is FRAME.2.proc2GP222___b1 not dead?  Looks to me
that it is.  Looks to me that "ABCD" got copy-propagated into
the memcmp call.


r~


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