Re: [PATCH] Fix copyprop_hardreg_forward_1 (PR rtl-optimization/85342)

2018-04-12 Thread Richard Biener
On Wed, 11 Apr 2018, Jakub Jelinek wrote: > Hi! > > When switching regcprop.c to use validate_* and apply_change_group, > I have added code to restore recog_data.operands[i] if they have been > replaced after apply_change_group failure. That is bogus though, when > apply_change_group fails, reco

[PATCH] Fix copyprop_hardreg_forward_1 (PR rtl-optimization/85342)

2018-04-11 Thread Jakub Jelinek
Hi! When switching regcprop.c to use validate_* and apply_change_group, I have added code to restore recog_data.operands[i] if they have been replaced after apply_change_group failure. That is bogus though, when apply_change_group fails, recog_data.insn is NULL and rest of recog_data structure is