public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH 0/7] Shrink some rtxes
@ 2014-05-10 19:55 Richard Sandiford
  2014-05-10 19:58 ` [PATCH 1/7] Fix GTY markup of u2 Richard Sandiford
                   ` (7 more replies)
  0 siblings, 8 replies; 30+ messages in thread
From: Richard Sandiford @ 2014-05-10 19:55 UTC (permalink / raw)
  To: gcc-patches

Until the wide-int merge there was a 32-bit hole on 64-bit hosts between
the end of the rtx flags and the start of the first field.  It was decided
that CONST_WIDE_INT should use this hole to store the number of HWIs.

This patch series moves the "i" and int-typed "0" fields of some
other rtxes to this region.  It mostly has to be "0" fields though.
There are other rtxes like ADDRESS and SUBREG (for the SUBREG_BYTE)
that would benefit in principle, but this would break various bits
of code that use GET_RTX_FORMAT.  Probably the most difficult format
user to update is genrecog.

UNSPEC and UNSPEC_VOLATILE would also benefit, but the bigger saving
there -- and for things like PARALLEL and CONST_VECTOR -- would be
to use a trailing array for the rtxes instead of a separate rtvec.
Something like a 24/8 split between the unspec number and number
of subrtxes should be plenty.

Tested on x86_64-linux-gnu.

Thanks,
Richard

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

end of thread, other threads:[~2014-05-29 12:29 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-10 19:55 [PATCH 0/7] Shrink some rtxes Richard Sandiford
2014-05-10 19:58 ` [PATCH 1/7] Fix GTY markup of u2 Richard Sandiford
2014-05-11  0:21   ` Mike Stump
2014-05-12 10:19     ` Michael Matz
2014-05-12 10:54       ` Richard Sandiford
2014-05-12 14:20         ` Mike Stump
2014-05-12 15:34   ` Jeff Law
2014-05-10 20:00 ` [PATCH 2/7] Reduce GENERATOR_FILE ifndefs in print-rtl.c Richard Sandiford
2014-05-12 15:37   ` Jeff Law
2014-05-10 20:08 ` [PATCH 3/7] Move ORIGINAL_REGNO to rtx header Richard Sandiford
2014-05-12 15:46   ` Jeff Law
2014-05-10 20:13 ` [PATCH 4/7] Move INSN_UID to the " Richard Sandiford
2014-05-12 15:58   ` Jeff Law
2014-05-10 20:17 ` [PATCH 5/7] Shrink SCRATCH Richard Sandiford
2014-05-12 16:00   ` Jeff Law
2014-05-12 16:37     ` Richard Sandiford
2014-05-12 17:01       ` Jeff Law
2014-05-10 20:22 ` [PATCH 6/7] Move PAT_VAR_LOCATION_STATUS to rtx header Richard Sandiford
2014-05-12 16:01   ` Jeff Law
2014-05-10 20:24 ` [PATCH 7/7] Move SYMBOL_REF_FLAGS " Richard Sandiford
2014-05-12 10:32   ` Michael Matz
2014-05-12 11:00     ` Richard Sandiford
2014-05-12 11:05       ` Michael Matz
2014-05-12 15:49       ` Jeff Law
2014-05-12 16:27   ` Jeff Law
2014-05-29 11:28   ` Tom de Vries
2014-05-29 12:07     ` Richard Sandiford
2014-05-29 12:29       ` Jeff Law
2014-05-29 12:27     ` Jeff Law
2014-05-10 20:25 ` [PATCH 0/7] Shrink some rtxes Richard Sandiford

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