Hi! On Fri, Mar 24, 2017 at 08:36:16PM +0100, Jakub Jelinek wrote: > + /* Skip over reg notes not related to CFI information. */ > + while (n1) > + { > + for (i = 0; i < ARRAY_SIZE (cfa_note_kinds) - 1; i++) > + if (REG_NOTE_KIND (n1) == cfa_note_kinds[i]) > + break; > + if (i != ARRAY_SIZE (cfa_note_kinds)) > + break; > + n1 = XEXP (n1, 1); > + }
Maybe factor out reg_note_is_cfa_note and/or insns_have_identical_cfa_notes functions? The patch looks fine to me btw. Thanks for working on this! Segher