https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71061
Bug ID: 71061 Summary: [ARM] is not setting instruction length for pop* patterns Product: gcc Version: 7.0 Status: UNCONFIRMED Keywords: missed-optimization Severity: minor Priority: P3 Component: target Assignee: jiwang at gcc dot gnu.org Reporter: jiwang at gcc dot gnu.org Target Milestone: --- Target: arm* This is causing wrong size calculation and may affect some rtl pass, for example bb-order where copy_bb_p needs accurate insn length info. This have eventually part of the reason for https://gcc.gnu.org/ml/gcc-patches/2016-05/msg00639.html where bb-order failed to do the bb copy. For the fix, I think we should extend arm_attr_length_push_multi to pop* pattern.