[PATCH] Move the check for any_condjump_p from sched-deps to target macros

Hurugalawadi, Naveen Naveen.Hurugalawadi@cavium.com
Mon Mar 27 04:57:00 GMT 2017


Hi,

Please find attached the patch that moves the check for CC usage in
any_condjump_p from sched-deps to target macros.

Currently the check is used only by i386 and AArch64.
The general condition checks for the fusion candidates to use/modify CC1
register. However, the fusion of ALU and Branch instruction in AArch64 looks
for any register and hence does not satisfy the condition. 

Bootstrapped and Regression tested on AArch64 and X86_64.

Please review the patch and let us know if its okay?

Thanks,
Naveen

2017-03-27  Naveen H.S  <Naveen.Hurugalawadi@cavium.com>

	* config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Push the
	check for CC usage into AARCH64_FUSE_CMP_BRANCH.
	* config/i386/i386.c (ix86_macro_fusion_pair_p): Push the check for
	CC usage from generic code.
	* sched-deps.c (sched_macro_fuse_insns): Move the condition for
	any_condjump_p into the target macros.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fusion-anycond-jump.patch
Type: text/x-patch
Size: 2701 bytes
Desc: fusion-anycond-jump.patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20170327/10985038/attachment.bin>


More information about the Gcc-patches mailing list