https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116189

--- Comment #10 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Created attachment 58808
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58808&action=edit
Fix to sh_recog_treg_set_expr

The problem is sh_recog_treg_set_expr is called from rtx_costs which sometimes
happens while proping into a debug_insn and sh_recog_treg_set_expr uses
make_insn_raw which increment the uid and so we would get a difference between
the max uids that is done for the GCSE hashtable. This fixes the issue by
creating the INSN RTX manually and not using make_insn_raw .

Reply via email to