public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [Patch AArch64 0/2] Refactor ldp/stp code
@ 2016-05-17  9:23 James Greenhalgh
  2016-05-17  9:23 ` [AArch64 1/2] Refactor aarch64_operands_ok_for_ldpstp, aarch64_operands_adjust_ok_for_ldpstp James Greenhalgh
  2016-05-17  9:23 ` [Patch AArch64 2/2] Some more cleanup of ldp/stp generation James Greenhalgh
  0 siblings, 2 replies; 6+ messages in thread
From: James Greenhalgh @ 2016-05-17  9:23 UTC (permalink / raw)
  To: gcc-patches; +Cc: nd, bin.cheng, marcus.shawrcroft, richard.earnshaw

[-- Attachment #1: Type: text/plain, Size: 1208 bytes --]

Hi,

This is a short patch set to remove duplication across the ldp/stp
generation code.

In both cases there is no functional change, just a refactor of common
sequences out to their own function, and a replacement of repeated work
with loops.

I think it makes for a cleanup, but I realise this is subjective.

I've bootstrapped the two patches on aarch64-none-linux-gnu with no
issues.

OK?

Thanks,
James

---
[AArch64 1/2] Refactor aarch64_operands_ok_for_ldpstp,
    aarch64_operands_adjust_ok_for_ldpstp

2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>

	* config/aarch64/aarch64.c
	(aarch64_extract_ldpstp_operands): New.
	(aarch64_ldpstp_ops_same_reg_class_p): Likewise.
	(aarch64_ldpstp_load_regs_clobber_base_p): Likewise.
	(aarch64_ldpstp_offsets_consecutive_p): Likewise.
	(aarch64_operands_ok_for_ldpstp_1): Likewise.
	(aarch64_operands_ok_for_ldpstp): Refactor to
	aarch64_operands_ok_for_ldpstp_1.
	(aarch64_operands_adjust_ok_for_ldpstp): Likewise.

[Patch AArch64 2/2] Some more cleanup of ldp/stp generation

2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>

	* config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Refactor.



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-06-03  8:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-17  9:23 [Patch AArch64 0/2] Refactor ldp/stp code James Greenhalgh
2016-05-17  9:23 ` [AArch64 1/2] Refactor aarch64_operands_ok_for_ldpstp, aarch64_operands_adjust_ok_for_ldpstp James Greenhalgh
2016-06-03  8:45   ` James Greenhalgh
2016-06-03  8:59   ` Kyrill Tkachov
2016-05-17  9:23 ` [Patch AArch64 2/2] Some more cleanup of ldp/stp generation James Greenhalgh
2016-06-03  8:46   ` James Greenhalgh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).