[AArch64] Cleanup logic around aarch64_final_prescan
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>
Fri, 24 Oct 2014 11:30:42 +0000 (11:30 +0000)
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>
Fri, 24 Oct 2014 11:30:42 +0000 (11:30 +0000)
commit8baff86e5610fc7351bfb3abfb75f17305e7edd3
treeb98b7cf1873d829f4c4aea496c6edad522530bf6
parent1f59b31508e341ef159d56a679e0e8a76e6d0b2e
[AArch64] Cleanup logic around aarch64_final_prescan

* config/aarch64/aarch64.h (ADJUST_INSN_LENGTH): Wrap definition in
do while (0).
* config/aarch64/aarch64.c (is_mem_p): Delete.
(is_memory_op): Rename to...
(has_memory_op): ... This.  Use FOR_EACH_SUBRTX.
(dep_between_memop_and_curr): Assert that the input is a SET.
(aarch64_madd_needs_nop): Add comment.  Do not call
dep_between_memop_and_curr on NULL body.
(aarch64_final_prescan_insn): Add comment.
Include rtl-iter.h.

From-SVN: r216637
gcc/ChangeLog
gcc/config/aarch64/aarch64.c
gcc/config/aarch64/aarch64.h