Re: Tree-ssa dead store elimination

2005-04-13 Thread Andrew Pinski
On Apr 13, 2005, at 5:12 PM, Pat Haugen wrote: Sorry if there is an obvious answer for this, but I'm not to familiar with the tree-ssa phase. My question is, why doesn't tree-ssa-dse.c do anything to the following code? Because it does not understand V_MUST_DEF, see PR 18880 for a patch and more

Tree-ssa dead store elimination

2005-04-13 Thread Pat Haugen
Sorry if there is an obvious answer for this, but I'm not to familiar with the tree-ssa phase. My question is, why doesn't tree-ssa-dse.c do anything to the following code? int i,j,k,l; void p1() { i = 1; /* Dead store */ j = 2; i = k; /* Dead store after copy prop */ if (i == 1)