[Patch RFC 4/2 v3] Refactor noce_try_cmove_arith

James Greenhalgh james.greenhalgh@arm.com
Wed Jul 20 09:53:00 GMT 2016


Hi,

This patch pulls some duplicate logic out from noce_try_cmove_arith.
We do this in order to make reasoning about the code easier.

Some of the natural simplification that comes from this process improves
the generation of temporaries in the code, which is good as it reduces
the size and speed costs of the generated sequence.  We want to do this
as the more useless register moves we can remove early, the more accurate
our profitability analysis will be.

Bootstrapped on x86_64 and aarch64 with no issues.

OK?

Thanks,
James

---
2016-07-20  James Greenhalgh  <james.greenhalgh@arm.com>

	* ifcvt.c (noce_arith_helper): New.
	(noce_try_cmove_arith): Refactor.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-Patch-RFC-4-2-v3-Refactor-noce_try_cmove_arith.patch
Type: text/x-patch
Size: 9364 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20160720/1599f325/attachment.bin>


More information about the Gcc-patches mailing list