Re: [PATCH]: Fix compiler segfault failure in cd_dce pass

2012-11-25 Thread Richard Biener
On Wed, Nov 21, 2012 at 10:35 PM, Xinliang David Li wrote: > In compiling one of the very large C++ source, the compiler hit a > segfault in cddce -- the ssa_name of a vuse operand has a null def > stmt. > > The def stmt was a PHI node, and later got removed by the phicprop > pass (in eliminate_de

[PATCH]: Fix compiler segfault failure in cd_dce pass

2012-11-21 Thread Xinliang David Li
In compiling one of the very large C++ source, the compiler hit a segfault in cddce -- the ssa_name of a vuse operand has a null def stmt. The def stmt was a PHI node, and later got removed by the phicprop pass (in eliminate_degenerated_phis because it seems to have zero uses) : .MEM_343 = PHI