Re: [PATCH] Tiny if-conv improvement (PR tree-optimization/66142)

2015-05-29 Thread Richard Biener
On Fri, 29 May 2015, Jakub Jelinek wrote: > Hi! > > On the following testcase from the PR, dce2 turns > # .MEM_21 = PHI <.MEM_20(5), .MEM_4(D)(2)> > into > # .MEM_21 = PHI <.MEM_21(5), .MEM_4(D)(2)> > because all writes in the loop have been dead code eliminated. > But only the phicprop2 pass

[PATCH] Tiny if-conv improvement (PR tree-optimization/66142)

2015-05-29 Thread Jakub Jelinek
Hi! On the following testcase from the PR, dce2 turns # .MEM_21 = PHI <.MEM_20(5), .MEM_4(D)(2)> into # .MEM_21 = PHI <.MEM_21(5), .MEM_4(D)(2)> because all writes in the loop have been dead code eliminated. But only the phicprop2 pass much later is able to optimize this out (by changing all .