Re: [PATCH] Fix ICE during strstr gimple folding (PR middle-end/81207)

2017-06-27 Thread Richard Biener
On Tue, 27 Jun 2017, Jakub Jelinek wrote: > Hi! > > replace_call_with_call_and_fold has code to copy over vdef/vuse from the > old call to the new one, so that we don't have to update virtual ssa, > but it is conditioned on gimple_vdef being non-NULL and SSA_NAME. > If we have a pure function, gi

[PATCH] Fix ICE during strstr gimple folding (PR middle-end/81207)

2017-06-26 Thread Jakub Jelinek
Hi! replace_call_with_call_and_fold has code to copy over vdef/vuse from the old call to the new one, so that we don't have to update virtual ssa, but it is conditioned on gimple_vdef being non-NULL and SSA_NAME. If we have a pure function, gimple_vdef is NULL, yet we still want to copy over the v