This is the mail archive of the gcc-patches@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: patch: [mem-ssa] remove V_MUST_DEFs



On Mar 17, 2006, at 3:41 PM, Andrew Pinski wrote:



On Mar 17, 2006, at 3:35 PM, Aldy Hernandez wrote:


There is one regression: gcc.dg/tree-ssa/complex-4.c in which DCE fails
to remove the original store clearing the complex variable. Diego looked
at it, and suggested we fix DSE (not DCE) instead. I will do so in a
followup patch.

Can you attach the dump to see why DCE/DSE is not removing it? Since this is a testcase which I generated I would like to see why this is failing.

Never mind, it really does not matter as I can reproduce a similar failure
with structs, though it is worse as even with V_MUST_DEF we don't remove the
assignment:
struct s
{
int i;
int j;
};



struct s g(struct s s1) { struct s s2; s2 = s1; s2.i = s1.i+2; s2.j = s1.j+2; return s2; }


-- Pinski



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