Re: [PATCH] PR rtl-optimization/88308 Update LABEL_NUSES in move_insn_for_shrink_wrap

2019-02-14 Thread Richard Biener
On Thu, Feb 14, 2019 at 12:08 AM Aaron Sawdey wrote: > > I've tracked pr/88308 down to move_insn_for_shrink_wrap(). This function > moves an insn > from one BB to another by copying it and deleting the old one. Unfortunately > this does > the LABEL_NUSES count on labels referenced because deleti

[PATCH] PR rtl-optimization/88308 Update LABEL_NUSES in move_insn_for_shrink_wrap

2019-02-13 Thread Aaron Sawdey
I've tracked pr/88308 down to move_insn_for_shrink_wrap(). This function moves an insn from one BB to another by copying it and deleting the old one. Unfortunately this does the LABEL_NUSES count on labels referenced because deleting the old instruction decrements the count and nothing in this f