[AArch64 Refactor] Use emit_set_insn more frequently

James Greenhalgh james.greenhalgh@arm.com
Tue Feb 17 09:57:00 GMT 2015


Hi,

I was just flicking through the AArch64 back end and spotted the
little-used "emit_set_insn" function.

I was going to remove it, as it had only one user, but actually it
is an inoffensive little abstraction, so I've applied it throughout
aarch64.c

Bootstrapped on aarch64-none-linux-gnu.

Marcus, Richard, do you want this churn now or in Stage 1?

Cheers,
James

---
2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>

	* config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Use
	emit_set_insn to emit simple sets.
	(aarch64_expand_mov_immediate): Likewise.
	(aarch64_expand_compare_and_swap): Likewise.
	(aarch64_split_compare_and_swap): Likewise.
	(aarch64_split_atomic_op): Likewise.
	(aarch64_gen_adjusted_ldpstp): Likewise.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-AArch64-Refactor-Use-emit_set_insn-more-frequently.patch
Type: text/x-patch
Size: 7902 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20150217/56103e81/attachment.bin>


More information about the Gcc-patches mailing list