+2017-02-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
+
+ * config/aarch64/aarch64.c (has_memory_op): Delete.
+ (aarch64_madd_needs_nop): Use contains_mem_rtx_p instead of
+ has_memory_op.
+
2017-02-13 Jakub Jelinek <jakub@redhat.com>
PR rtl-optimization/79388
corresponding dest has last value recorded, invalidate that last
value.
-2016-02-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
+2017-02-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
* config/arm/arm.c (arm_print_tune_info): Use ASM_COMMENT_START instead
of explicit '@'. Add missing assembly comment marker on branch costs
return NULL;
}
-
-/* Return true if the rtx_insn contains a MEM RTX somewhere
- in it. */
-
-static bool
-has_memory_op (rtx_insn *mem_insn)
-{
- subrtx_iterator::array_type array;
- FOR_EACH_SUBRTX (iter, array, PATTERN (mem_insn), ALL)
- if (MEM_P (*iter))
- return true;
-
- return false;
-}
-
/* Find the first rtx_insn before insn that will generate an assembly
instruction. */
Restore recog state to INSN to avoid state corruption. */
extract_constrain_insn_cached (insn);
- if (!prev || !has_memory_op (prev))
+ if (!prev || !contains_mem_rtx_p (PATTERN (prev)))
return false;
body = single_set (prev);