gcc/
2014-08-27 David Malcolm <dmalcolm@redhat.com>
* function.c (contains): Introduce local "seq" for PATTERN (insn),
with a checked cast, in the region for where we know it's a
SEQUENCE. Use methods of rtx_sequence.
From-SVN: r214595
+2014-08-27 David Malcolm <dmalcolm@redhat.com>
+
+ * function.c (contains): Introduce local "seq" for PATTERN (insn),
+ with a checked cast, in the region for where we know it's a
+ SEQUENCE. Use methods of rtx_sequence.
+
2014-08-27 David Malcolm <dmalcolm@redhat.com>
* final.c (get_attr_length_1): Replace GET_CODE check with a
if (NONJUMP_INSN_P (insn) && GET_CODE (PATTERN (insn)) == SEQUENCE)
{
+ rtx_sequence *seq = as_a <rtx_sequence *> (PATTERN (insn));
int i;
- for (i = XVECLEN (PATTERN (insn), 0) - 1; i >= 0; i--)
- if (htab_find (hash, XVECEXP (PATTERN (insn), 0, i)))
+ for (i = seq->len () - 1; i >= 0; i--)
+ if (htab_find (hash, seq->element (i)))
return true;
return false;
}