public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH][AArch64][0/5] Improve immediate generation
@ 2015-09-02 12:34 Wilco Dijkstra
  0 siblings, 0 replies; only message in thread
From: Wilco Dijkstra @ 2015-09-02 12:34 UTC (permalink / raw)
  To: 'GCC Patches'

This is a set of patches to reduce the compile-time overhead of immediate generation on AArch64.
There have been discussions and investigations into reducing the overhead of immediate generation
using various caching strategies. However the statistics showed some of the expensive immediate
loops are not beneficial, and the algorithms can be improved significantly. The resulting speedups
are so large that caching can no longer show a measurable benefit.

aarch64_bitmask_imm is rewritten to use bitwise arithmetic rather than binary search.
aarch64_internal_mov_immediate is rewritten to remove slow linear and quadratic loops with constant
time logic, reduce the number of special cases and simplify the overall logic. There are slight
differences in the generated sequences however all immediate are the same size (no codesize
difference in SPEC2006). Overall buildtime improvement is 0.3% when building SPEC2006.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-09-02 12:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-02 12:34 [PATCH][AArch64][0/5] Improve immediate generation Wilco Dijkstra

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).